过滤结果转发器
public class FilteredResultForwarder
extends ResultForwarder
的变异ResultForwarder
,只允许一个允许列表TestDescription
予以报道。
概括
公共方法 |
---|
void | testAssumptionFailure (TestDescription test, FailureDescription failure) |
void | testAssumptionFailure (TestDescription test, String trace) |
void | testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics) |
void | testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics) |
void | testFailed (TestDescription test, FailureDescription failure) |
void | testFailed (TestDescription test, String trace) |
void | testIgnored (TestDescription test) |
void | testStarted (TestDescription test, long startTime) |
void | testStarted (TestDescription test) |
公共构造函数
过滤结果转发器
public FilteredResultForwarder ( allowedTests,
ITestInvocationListener... listeners)
参数 |
---|
allowedTests | |
listeners | ITestInvocationListener |
公共方法
测试假设失败
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
参数 |
---|
test | TestDescription |
failure | FailureDescription |
测试假设失败
public void testAssumptionFailure (TestDescription test,
String trace)
参数 |
---|
test | TestDescription |
trace | String |
测试结束
public void testEnded (TestDescription test,
testMetrics)
参数 |
---|
test | TestDescription |
testMetrics | |
测试结束
public void testEnded (TestDescription test,
long endTime,
testMetrics)
参数 |
---|
test | TestDescription |
endTime | long |
testMetrics | |
测试失败
public void testFailed (TestDescription test,
FailureDescription failure)
参数 |
---|
test | TestDescription |
failure | FailureDescription |
测试失败
public void testFailed (TestDescription test,
String trace)
参数 |
---|
test | TestDescription |
trace | String |
测试忽略
public void testIgnored (TestDescription test)
测试开始
public void testStarted (TestDescription test,
long startTime)
参数 |
---|
test | TestDescription |
startTime | long |
测试开始
public void testStarted (TestDescription test)