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

FireTestFailure

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 ()

removeListener

public void removeListener (RunListener listener)

参数
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

参数
testInfo TestInformation