Result (JUnit API)

Junit


org.junit.runner Class Result

java.lang.Object
  extended by org.junit.runner.Result

public class Result
extends 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.


构造器摘要
Result()
           
 
方法摘要
 RunListener createListener()
          Internal use only.
 int getFailureCount()
           
 List<Failure> getFailures()
           
 int getIgnoreCount()
           
 int getRunCount()
           
 long getRunTime()
           
 boolean wasSuccessful()
           
 
类方法继承: java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造器详细信息

Result

public Result()
方法详细信息

getRunCount

public int getRunCount()
返回:
the number of tests run

getFailureCount

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

getRunTime

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

getFailures

public List<Failure> getFailures()
返回:
the Failures describing tests that failed and the problems they encountered

getIgnoreCount

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

wasSuccessful

public boolean wasSuccessful()
返回:
true if all tests succeeded

createListener

public RunListener createListener()
Internal use only.