RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

java.lang.Object
org.junit.runner.notification.RunNotifier
com.android.tradefed.testtype.junit4.RunNotifierWrapper


RunNotifier的包装器,因此我们可以携带DeviceNotAvailableException

概括

公共构造函数

RunNotifierWrapper (RunNotifier notifier)

公共方法

void addFirstListener (RunListener listener)
void addListener (RunListener listener)
void fireTestAssumptionFailed (Failure failure)
void fireTestFailure (Failure failure)
void fireTestFinished (Description description)
void fireTestIgnored (Description description)
void fireTestRunFinished (Result result)
void fireTestRunStarted (Description description)
void fireTestStarted (Description description)
void fireTestSuiteFinished (Description description)
void fireTestSuiteStarted (Description description)
DeviceNotAvailableException getDeviceNotAvailableException ()

如果抛出任何异常,则返回DeviceNotAvailableException

void pleaseStop ()
void removeListener (RunListener listener)
void setTestInfo ( TestInformation testInfo)

公共构造函数

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

参数
notifier RunNotifier

公共方法

addFirstListener

public void addFirstListener (RunListener listener)

参数
listener RunListener

添加监听器

public void addListener (RunListener listener)

参数
listener RunListener

fireTestAssumptionFailed

public void fireTestAssumptionFailed (Failure failure)

参数
failure Failure

火灾测试失败

public void fireTestFailure (Failure failure)

参数
failure Failure

fireTestFinished

public void fireTestFinished (Description description)

参数
description Description

fireTestIgnored

public void fireTestIgnored (Description description)

参数
description Description

fireTestRunFinished

public void fireTestRunFinished (Result result)

参数
result Result

fireTestRunStarted

public void fireTestRunStarted (Description description)

参数
description Description

fireTestStarted

public void fireTestStarted (Description description)

参数
description Description

fireTestSuiteFinished

public void fireTestSuiteFinished (Description description)

参数
description Description

fireTestSuiteStarted

public void fireTestSuiteStarted (Description description)

参数
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

如果抛出任何异常,则返回DeviceNotAvailableException

退货
DeviceNotAvailableException

请停下

public void pleaseStop ()

移除监听器

public void removeListener (RunListener listener)

参数
listener RunListener

设置测试信息

public void setTestInfo (TestInformation testInfo)

参数
testInfo TestInformation