Describes a test result.
Modifiers | Name | Description |
---|---|---|
enum |
TestResult.ResultType |
The final status of a test. |
Type | Name and description |
---|---|
long |
getEndTime() Returns the time when this test completed execution. |
Throwable |
getException() If the test failed with an exception, this will be the exception. |
List<Throwable> |
getExceptions() If the test failed with any exceptions, this will contain the exceptions. |
long |
getFailedTestCount() Returns the number of failed atomic tests executed for this test. |
TestResult.ResultType |
getResultType() Describes a test result. |
long |
getSkippedTestCount() Returns the number of skipped atomic tests executed for this test. |
long |
getStartTime() Returns the time when this test started execution. |
long |
getSuccessfulTestCount() Returns the number of successful atomic tests executed for this test. |
long |
getTestCount() Returns the total number of atomic tests executed for this test. |
Returns the time when this test completed execution.
If the test failed with an exception, this will be the exception. Some test frameworks do not fail without an exception (JUnit), so in those cases this method will never return null.
If the test failed with any exceptions, this will contain the exceptions. Some test frameworks do not fail without an exception (JUnit), so in those cases this method will never return null.
Returns the number of failed atomic tests executed for this test.
Describes a test result.
Returns the number of skipped atomic tests executed for this test.
Returns the time when this test started execution.
Returns the number of successful atomic tests executed for this test.
Returns the total number of atomic tests executed for this test. This will return 1 if this test is itself an atomic test.