程序包 org.junit.runner
类 Result
- java.lang.Object
- org.junit.runner.Result
- 所有已实现的接口:
Serializable
public class Result extends Object implements Serializable
AResult
collects and summarizes information from running multiple tests. All tests are counted -- additional information is collected from tests that fail.- 从以下版本开始:
- 4.0
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 Result()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RunListener
createListener()
Internal use only.int
getFailureCount()
List<Failure>
getFailures()
int
getIgnoreCount()
int
getRunCount()
long
getRunTime()
boolean
wasSuccessful()
构造器详细资料
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
Failure
s 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.