RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

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


Wrapper RunNotifier agar kita dapat membawa DeviceNotAvailableException.

Ringkasan

Konstruktor publik

RunNotifierWrapper(RunNotifier notifier)

Metode publik

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

Menampilkan DeviceNotAvailableException jika ada yang ditampilkan.

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

Konstruktor publik

RunNotifierWrapper

public RunNotifierWrapper (RunNotifier notifier)

Parameter
notifier RunNotifier

Metode publik

addFirstListener

public void addFirstListener (RunListener listener)

Parameter
listener RunListener

addListener

public void addListener (RunListener listener)

Parameter
listener RunListener

fireTestAssumptionFailed

public void fireTestAssumptionFailed (Failure failure)

Parameter
failure Failure

fireTestFailure

public void fireTestFailure (Failure failure)

Parameter
failure Failure

fireTestFinished

public void fireTestFinished (Description description)

Parameter
description Description

fireTestDiabaikan

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

fireTestSuiteFinished

public void fireTestSuiteFinished (Description description)

Parameter
description Description

fireTestSuiteStarted

public void fireTestSuiteStarted (Description description)

Parameter
description Description

getDeviceNotAvailableException

public DeviceNotAvailableException getDeviceNotAvailableException ()

Menampilkan DeviceNotAvailableException jika ada yang ditampilkan.

Hasil
DeviceNotAvailableException

pleaseStop

public void pleaseStop ()

removeListener

public void removeListener (RunListener listener)

Parameter
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

Parameter
testInfo TestInformation