public abstract class TestResult
extends java.lang.Object
Holds the result from the run of a test.
Constructor and Description |
---|
TestResult()
Default constructor
|
TestResult(java.lang.String comment)
Class constructor
|
TestResult(java.lang.String id,
java.lang.String comment)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Return the additional info/comment
|
abstract java.lang.Object |
getResult()
Return the test result
|
java.lang.String |
getRunId()
Return the test run/thread id
|
boolean |
hasComment()
Check if there is additional result/comment information available
|
boolean |
isFailure()
Determine if the result indicates a failure
|
boolean |
isSuccess()
Determine if the result indicates a success
|
boolean |
isWarning()
Determine if the result indicates a warning
|
void |
setComment(java.lang.String comment)
Set the result comment
|
public TestResult()
public TestResult(java.lang.String comment)
comment
- Stringpublic TestResult(java.lang.String id, java.lang.String comment)
id
- Stringcomment
- Stringpublic final java.lang.String getRunId()
public final boolean hasComment()
public final java.lang.String getComment()
public final void setComment(java.lang.String comment)
comment
- Stringpublic abstract java.lang.Object getResult()
public boolean isSuccess()
public boolean isFailure()
public boolean isWarning()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.