C
- the Class type instance of the test itemR
- the type of the return value of the test procedurepublic static class BevoTest.TestExecutionResult<C,R> extends java.lang.Object implements BevoTest.TestLogEntry
TestExecutionResult
represents the result of executing a
test case on a test item. Each TestExecutionResult
has a status (running, complete, etc...) and evaluation (pass/fail),
along with details of the execution. These details include the
runtime type of the test item, test results, and run time.BevoTest.TestLog
Modifier and Type | Class and Description |
---|---|
static class |
BevoTest.TestExecutionResult.Evaluation
An evaluation (pass/fail) of the result of a
TestCase
(test procedure) execution |
static class |
BevoTest.TestExecutionResult.Status
A status of a
TestCase (test procedure) execution |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCaughtValue() |
BevoTest.TestExecutionResult.Evaluation |
getEvaluation() |
R |
getReturnedValue() |
long |
getRunTime() |
BevoTest.TestExecutionResult.Status |
getStatus() |
BevoTest.TestCase<C,R> |
getTestCase() |
java.lang.Class<?> |
getTestItemClass() |
BevoTest.TestLog |
getTestLog() |
boolean |
isComplete() |
boolean |
isCompleteOrSkipped() |
boolean |
isReturnedValueValid() |
java.lang.String |
toString() |
public BevoTest.TestLog getTestLog()
TestLog
that this result is an entry ofpublic BevoTest.TestCase<C,R> getTestCase()
TestCase
that this is a result ofpublic boolean isComplete()
true
if the test procedure has run to
completion (normal or abnormal termination)public boolean isCompleteOrSkipped()
true
if the test procedure has run to
completion (normal or abnormal termination), OR
has been skippedpublic BevoTest.TestExecutionResult.Status getStatus()
Status
of this test procedure executionBevoTest.TestExecutionResult.Status
public java.lang.Class<?> getTestItemClass()
public boolean isReturnedValueValid()
true
if the test procedure returned a valuepublic R getReturnedValue() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if isReturnedValueValid()
is false
isReturnedValueValid()
public java.lang.Throwable getCaughtValue()
Throwable
thrown by the test item, or
null
if nothing has been thrownpublic BevoTest.TestExecutionResult.Evaluation getEvaluation() throws java.lang.IllegalStateException
Evaluation
(pass/fail) of this test procedure executionjava.lang.IllegalStateException
- if isCompleteOrSkipped()
is false
BevoTest.TestExecutionResult.Evaluation
,
isCompleteOrSkipped()
public long getRunTime() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if status is not COMPLETE_NORMAL
public java.lang.String toString()
toString
in class java.lang.Object