RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

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


Wrapper de RunNotifier pour pouvoir transporter DeviceNotAvailableException.

Résumé

Constructeurs publics

RunNotifierWrapper(RunNotifier notifier)

Méthodes publiques

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

Renvoie l'DeviceNotAvailableException si une exception a été générée.

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

Constructeurs publics

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

Paramètres
notifier RunNotifier

Méthodes publiques

addFirstListener

public void addFirstListener (RunListener listener)

Paramètres
listener RunListener

addListener

public void addListener (RunListener listener)

Paramètres
listener RunListener

fireTestAssumptionFailed

public void fireTestAssumptionFailed (Failure failure)

Paramètres
failure Failure

FireTestFailure

public void fireTestFailure (Failure failure)

Paramètres
failure Failure

fireTestFinished

public void fireTestFinished (Description description)

Paramètres
description Description

fireTestIgnored

public void fireTestIgnored (Description description)

Paramètres
description Description

fireTestRunFinished

public void fireTestRunFinished (Result result)

Paramètres
result Result

fireTestRunStarted

public void fireTestRunStarted (Description description)

Paramètres
description Description

fireTestStarted

public void fireTestStarted (Description description)

Paramètres
description Description

fireTestSuiteFinished

public void fireTestSuiteFinished (Description description)

Paramètres
description Description

fireTestSuiteStarted

public void fireTestSuiteStarted (Description description)

Paramètres
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

Renvoie l'DeviceNotAvailableException, le cas échéant.

Renvoie
DeviceNotAvailableException

pleaseStop

public void pleaseStop ()

removeListener

public void removeListener (RunListener listener)

Paramètres
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

Paramètres
testInfo TestInformation