RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

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


Wrapper de RunNotifier para que possamos transportar o DeviceNotAvailableException.

Resumo

Construtores públicos

RunNotifierWrapper(RunNotifier notifier)

Métodos públicos

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

Retorna o DeviceNotAvailableException, se algum tiver sido gerado.

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

Construtores públicos

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

Parâmetros
notifier RunNotifier

Métodos públicos

addFirstListener

public void addFirstListener (RunListener listener)

Parâmetros
listener RunListener

addListener

public void addListener (RunListener listener)

Parâmetros
listener RunListener

FireTestAssumptionFailed

public void fireTestAssumptionFailed (Failure failure)

Parâmetros
failure Failure

FireTestFailure

public void fireTestFailure (Failure failure)

Parâmetros
failure Failure

FireTestFinished

public void fireTestFinished (Description description)

Parâmetros
description Description

FireTestIgnored

public void fireTestIgnored (Description description)

Parâmetros
description Description

FireTestRunFinished

public void fireTestRunFinished (Result result)

Parâmetros
result Result

FireTestRunStarted

public void fireTestRunStarted (Description description)

Parâmetros
description Description

FireTestStarted

public void fireTestStarted (Description description)

Parâmetros
description Description

FireTestSuiteFinished

public void fireTestSuiteFinished (Description description)

Parâmetros
description Description

FireTestSuiteStarted

public void fireTestSuiteStarted (Description description)

Parâmetros
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

Retorna o DeviceNotAvailableException, se algum tiver sido gerado.

Retorna
DeviceNotAvailableException

Pare por favor

public void pleaseStop ()

removeListener

public void removeListener (RunListener listener)

Parâmetros
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

Parâmetros
testInfo TestInformation