RunNotifierWrapper

public class RunNotifierWrapper
extends RunNotifier

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


Wrapper RunNotifier sehingga 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

fireTestAsumptionGagal

public void fireTestAssumptionFailed (Failure failure)

Parameter
failure Failure

fireTestFailure

public void fireTestFailure (Failure failure)

Parameter
failure Failure

FireTestSelesai

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

fireTestDimulai

public void fireTestStarted (Description description)

Parameter
description Description

FireTestSuiteSelesai

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

tolong Hentikan

public void pleaseStop ()

removeListener

public void removeListener (RunListener listener)

Parameter
listener RunListener

setTestInfo

public void setTestInfo (TestInformation testInfo)

Parameter
testInfo TestInformation