Package org.junit.runner
Class Result
java.lang.Object
org.junit.runner.Result
- All Implemented Interfaces:
Serializable
A
Result
collects and summarizes information from running multiple tests.
All tests are counted -- additional information is collected from tests that fail.- Since:
- 4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInternal use only.int
Returns the number of tests skipped because of an assumption failureint
Returns the number of tests that failed during the runReturns theFailure
s describing tests that failed and the problems they encounteredint
int
Returns the number of tests runlong
Returns the number of milliseconds it took to run the entire suite to runboolean
-
Constructor Details
-
Result
public Result()
-
-
Method Details
-
getRunCount
Returns the number of tests run -
getFailureCount
Returns the number of tests that failed during the run -
getRunTime
Returns the number of milliseconds it took to run the entire suite to run -
getFailures
Returns theFailure
s describing tests that failed and the problems they encountered -
getIgnoreCount
- Returns:
- the number of tests ignored during the run
-
getAssumptionFailureCount
Returns the number of tests skipped because of an assumption failure- Throws:
UnsupportedOperationException
- if the result was serialized in a version before JUnit 4.13- Since:
- 4.13
-
wasSuccessful
- Returns:
true
if all tests succeeded
-
createListener
Internal use only.
-