RunNotifierWrapper
public
class
RunNotifierWrapper
extends RunNotifier
java.lang.Object | ||
↳ | org.junit.runner.notification.RunNotifier | |
↳ | com.android.tradefed.testtype.junit4.RunNotifierWrapper |
Wrapper of RunNotifier
so we can carry the DeviceNotAvailableException
.
Summary
Public constructors | |
---|---|
RunNotifierWrapper(RunNotifier notifier)
|
Public methods | |
---|---|
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()
Returns the |
void
|
pleaseStop()
|
void
|
removeListener(RunListener listener)
|
void
|
setTestInfo(TestInformation testInfo)
|
Public constructors
RunNotifierWrapper
public RunNotifierWrapper (RunNotifier notifier)
Parameters | |
---|---|
notifier |
RunNotifier |
Public methods
addFirstListener
public void addFirstListener (RunListener listener)
Parameters | |
---|---|
listener |
RunListener |
addListener
public void addListener (RunListener listener)
Parameters | |
---|---|
listener |
RunListener |
fireTestAssumptionFailed
public void fireTestAssumptionFailed (Failure failure)
Parameters | |
---|---|
failure |
Failure |
fireTestFailure
public void fireTestFailure (Failure failure)
Parameters | |
---|---|
failure |
Failure |
fireTestFinished
public void fireTestFinished (Description description)
Parameters | |
---|---|
description |
Description |
fireTestIgnored
public void fireTestIgnored (Description description)
Parameters | |
---|---|
description |
Description |
fireTestRunFinished
public void fireTestRunFinished (Result result)
Parameters | |
---|---|
result |
Result |
fireTestRunStarted
public void fireTestRunStarted (Description description)
Parameters | |
---|---|
description |
Description |
fireTestStarted
public void fireTestStarted (Description description)
Parameters | |
---|---|
description |
Description |
fireTestSuiteFinished
public void fireTestSuiteFinished (Description description)
Parameters | |
---|---|
description |
Description |
fireTestSuiteStarted
public void fireTestSuiteStarted (Description description)
Parameters | |
---|---|
description |
Description |
getDeviceNotAvailableException
public DeviceNotAvailableException getDeviceNotAvailableException ()
Returns the DeviceNotAvailableException
if any was thrown.
Returns | |
---|---|
DeviceNotAvailableException |
pleaseStop
public void pleaseStop ()
removeListener
public void removeListener (RunListener listener)
Parameters | |
---|---|
listener |
RunListener |