public class Result extends Object implements Serializable
Result collects and summarizes information from running multiple tests.
All tests are counted -- additional information is collected from tests that fail.| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
RunListener |
createListener()
Internal use only.
|
int |
getAssumptionFailureCount()
Returns the number of tests skipped because of an assumption failure
|
int |
getFailureCount()
Returns the number of tests that failed during the run
|
List<Failure> |
getFailures()
Returns the
Failures describing tests that failed and the problems they encountered |
int |
getIgnoreCount() |
int |
getRunCount()
Returns the number of tests run
|
long |
getRunTime()
Returns the number of milliseconds it took to run the entire suite to run
|
boolean |
wasSuccessful() |
public Result()
public int getRunCount()
public int getFailureCount()
public long getRunTime()
public List<Failure> getFailures()
Failures describing tests that failed and the problems they encounteredpublic int getIgnoreCount()
public int getAssumptionFailureCount()
UnsupportedOperationException - if the result was serialized in a version before JUnit 4.13public boolean wasSuccessful()
true if all tests succeededpublic RunListener createListener()
Copyright © 2002–2020 JUnit. All rights reserved.