public class ExceptionTestResult extends TestResult
Test result implementation for tests that complete with an exception. An exception does not necessarily mean a failure as some exceptions may be expected depending on the test.
Constructor and Description |
---|
ExceptionTestResult(java.lang.Exception ex)
Class constructor
|
ExceptionTestResult(java.lang.Exception ex,
java.lang.String comment)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getResult()
Return the test result
|
boolean |
isFailure()
Default to indicate that an exception is a failure, override to filter
particular exception types
|
boolean |
isSuccess()
Default to indicate that an exception is not a success, override to filter
particular exception types
|
boolean |
isWarning()
Default to indicate that an exception is not a warning, override to filter
particular exception types
|
java.lang.String |
toString()
Return the test result as a string
|
getComment, getRunId, hasComment, setComment
public ExceptionTestResult(java.lang.Exception ex)
ex
- Exceptionpublic ExceptionTestResult(java.lang.Exception ex, java.lang.String comment)
ex
- Exceptioncomment
- Stringpublic java.lang.Object getResult()
getResult
in class TestResult
public boolean isSuccess()
isSuccess
in class TestResult
public boolean isFailure()
isFailure
in class TestResult
public boolean isWarning()
isWarning
in class TestResult
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.