public class BooleanTestResult extends TestResult
Test result implementation for simple true/false status returns.
| Constructor and Description |
|---|
BooleanTestResult(boolean result)
Class contstructor
|
BooleanTestResult(boolean result,
java.lang.String comment)
Class contstructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getResult()
Return the test result
|
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
|
java.lang.String |
toString()
Return the test result as a string
|
getComment, getRunId, hasComment, setCommentpublic BooleanTestResult(boolean result)
result - booleanpublic BooleanTestResult(boolean result,
java.lang.String comment)
result - booleancomment - Stringpublic java.lang.Object getResult()
getResult in class TestResultpublic boolean isSuccess()
isSuccess in class TestResultpublic boolean isFailure()
isFailure in class TestResultpublic boolean isWarning()
isWarning in class TestResultpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.