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()
如果有任何例外狀況發生,就會傳回 |
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 |
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 |
pleaseStop
public void pleaseStop ()
removeListener
public void removeListener (RunListener listener)
參數 | |
---|---|
listener |
RunListener |