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.

Method Summary

RunListener
createListener()
Internal use only.
int
getFailureCount()
List
getFailures()
int
getIgnoreCount()
int
getRunCount()
long
getRunTime()
boolean
wasSuccessful()

Method Details

createListener

public RunListener createListener()
Internal use only.

getFailureCount

public int getFailureCount()
Returns:
the number of tests that failed during the run

getFailures

public List getFailures()
Returns:
the Failures describing tests that failed and the problems they encountered

getIgnoreCount

public int getIgnoreCount()
Returns:
the number of tests ignored during the run

getRunCount

public int getRunCount()
Returns:
the number of tests run

getRunTime

public long getRunTime()
Returns:
the number of milliseconds it took to run the entire suite to run

wasSuccessful

public boolean wasSuccessful()
Returns:
true if all tests succeeded