InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

Obiekt Java.lang.Object
com.android.tradefed.result.InvocationToJUnitResultForwarder


Klasa, która nasłuchuje zdarzeń ITestInvocationListener i przekazuje je do TestListener .

Streszczenie

Konstruktorzy publiczni

InvocationToJUnitResultForwarder (TestListener junitListener)

Metody publiczne

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription testId, String trace)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription testId, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType logData, InputStreamSource dataStream)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

Metody chronione

TestListener getJUnitListener ()

Konstruktorzy publiczni

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Parametry
junitListener TestListener

Metody publiczne

pobierz podsumowanie

public TestSummary getSummary ()

Zwroty
TestSummary

wywołanieZakończone

public void invocationEnded (long elapsedTime)

Parametry
elapsedTime long

wywołanie nie powiodło się

public void invocationFailed (Throwable cause)

Parametry
cause Throwable

wywołanieRozpoczęte

public void invocationStarted (IInvocationContext context)

Parametry
context IInvocationContext

testZałożenieNiepowodzenie

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Parametry
testId TestDescription

trace String

testZakończony

public void testEnded (TestDescription test, 
                 testMetrics)

Parametry
test TestDescription

testMetrics

Test nieudany

public void testFailed (TestDescription testId, 
                String trace)

Parametry
testId TestDescription

trace String

testIgnorowany

public void testIgnored (TestDescription test)

Parametry
test TestDescription

dziennik testowy

public void testLog (String dataName, 
                LogDataType logData, 
                InputStreamSource dataStream)

Parametry
dataName String

logData LogDataType

dataStream InputStreamSource

testRunZakończony

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametry
elapsedTime long

runMetrics

testRun nie powiódł się

public void testRunFailed (String errorMessage)

Parametry
errorMessage String

Uruchomiono testRun

public void testRunStarted (String runName, 
                int testCount)

Parametry
runName String

testCount int

testRunZatrzymany

public void testRunStopped (long elapsedTime)

Parametry
elapsedTime long

test rozpoczęty

public void testStarted (TestDescription test)

Parametry
test TestDescription

Metody chronione

pobierzJUnitListener

protected TestListener getJUnitListener ()

Zwroty
TestListener