執行通知程式包裝函式
public
class
RunNotifierWrapper
extends RunNotifier
java.lang.Object | ||
↳ | org.junit.runner.notification.RunNotifier | |
↳ | com.android.tradefed.testtype.junit4.RunNotifierWrapper |
用來存放 DeviceNotAvailableException
的 RunNotifier
包裝函式。
摘要
公用建構函式 | |
---|---|
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()
如果擲回任何,系統會傳回 |
void
|
pleaseStop()
|
void
|
removeListener(RunListener listener)
|
void
|
setTestInfo(TestInformation testInfo)
|
公用建構函式
執行通知程式包裝函式
public RunNotifierWrapper (RunNotifier notifier)
參數 | |
---|---|
notifier |
RunNotifier |
公用方法
addFirstListener
public void addFirstListener (RunListener listener)
參數 | |
---|---|
listener |
RunListener |
addListener
public void addListener (RunListener listener)
參數 | |
---|---|
listener |
RunListener |
FireTestAssumptionFailed
public void fireTestAssumptionFailed (Failure failure)
參數 | |
---|---|
failure |
Failure |
FireTestFailure
public void fireTestFailure (Failure failure)
參數 | |
---|---|
failure |
Failure |
FireTest 已完成
public void fireTestFinished (Description description)
參數 | |
---|---|
description |
Description |
FireTest 忽略
public void fireTestIgnored (Description description)
參數 | |
---|---|
description |
Description |
FireTestRun 已完成
public void fireTestRunFinished (Result result)
參數 | |
---|---|
result |
Result |
FireTestRunStarted
public void fireTestRunStarted (Description description)
參數 | |
---|---|
description |
Description |
FireTestStarted
public void fireTestStarted (Description description)
參數 | |
---|---|
description |
Description |
FireTestSuite 完成
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 |