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 fireTestAssumptionFailed(Failure failure)
void fireTestFailure(Failure failure)
void fireTestFinished(Description description)
void fireTestIgnored(Description description)
void fireTestStarted(Description description)
DeviceNotAvailableException getDeviceNotAvailableException()

Returns the DeviceNotAvailableException if any was thrown.

Public constructors

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

Parameters
notifier RunNotifier

Public methods

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

fireTestStarted

public void fireTestStarted (Description description)

Parameters
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

Returns the DeviceNotAvailableException if any was thrown.

Returns
DeviceNotAvailableException