RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

java.lang.Object
org.junit.runner.notification.RunNotifier
com.android.tradefed.testtype.junit4.RunNotifierWrapper


Wrapper von RunNotifier , damit wir die DeviceNotAvailableException können.

Zusammenfassung

Öffentliche Konstrukteure

RunNotifierWrapper (RunNotifier notifier)

Öffentliche Methoden

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

Gibt die DeviceNotAvailableException zurück, falls eine ausgelöst wurde.

void pleaseStop ()
void removeListener (RunListener listener)
void setTestInfo ( TestInformation testInfo)

Öffentliche Konstrukteure

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

Parameter
notifier RunNotifier

Öffentliche Methoden

addFirstListener

public void addFirstListener (RunListener listener)

Parameter
listener RunListener

addListener

public void addListener (RunListener listener)

Parameter
listener RunListener

fireTestAnnahme fehlgeschlagen

public void fireTestAssumptionFailed (Failure failure)

Parameter
failure Failure

fireTestFailure

public void fireTestFailure (Failure failure)

Parameter
failure Failure

fireTestFertig

public void fireTestFinished (Description description)

Parameter
description Description

fireTestIgnoriert

public void fireTestIgnored (Description description)

Parameter
description Description

fireTestRunFinished

public void fireTestRunFinished (Result result)

Parameter
result Result

fireTestRunStarted

public void fireTestRunStarted (Description description)

Parameter
description Description

fireTestStarted

public void fireTestStarted (Description description)

Parameter
description Description

fireTestSuiteFertig

public void fireTestSuiteFinished (Description description)

Parameter
description Description

fireTestSuiteStarted

public void fireTestSuiteStarted (Description description)

Parameter
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

Gibt die DeviceNotAvailableException zurück, falls eine ausgelöst wurde.

Kehrt zurück
DeviceNotAvailableException

bitte hör auf

public void pleaseStop ()

Listener entfernen

public void removeListener (RunListener listener)

Parameter
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

Parameter
testInfo TestInformation