org.junit.runner
Class Result
public class Result
extends java.lang.Object
A Result
collects and summarizes information from running multiple
tests. Since tests are expected to run correctly, successful tests are only noted in
the count of tests that ran.
createListener
public RunListener createListener()
Internal use only.
getFailureCount
public int getFailureCount()
- the number of tests that failed during the run
getFailures
public List getFailures()
- the
Failure
s describing tests that failed and the problems they encountered
getIgnoreCount
public int getIgnoreCount()
- the number of tests ignored during the run
getRunCount
public int getRunCount()
getRunTime
public long getRunTime()
- the number of milliseconds it took to run the entire suite to run
wasSuccessful
public boolean wasSuccessful()
true
if all tests succeeded