ВызовToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

java.lang.Объект
com.android.tradefed.result.InvoctionToJUnitResultForwarder


Класс, который прослушивает события ITestInvocationListener и пересылает их в TestListener .

Краткое содержание

Общественные конструкторы

InvocationToJUnitResultForwarder (TestListener junitListener)

Публичные методы

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)

Защищенные методы

TestListener getJUnitListener ()

Общественные конструкторы

ВызовToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Параметры
junitListener TestListener

Публичные методы

получитьСводка

public TestSummary getSummary ()

Возврат
TestSummary

вызовЗавершен

public void invocationEnded (long elapsedTime)

Параметры
elapsedTime long

вызов не пройден

public void invocationFailed (Throwable cause)

Параметры
cause Throwable

вызовНачало

public void invocationStarted (IInvocationContext context)

Параметры
context IInvocationContext

тестПредположениеОтказ

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Параметры
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Параметры
test TestDescription

testMetrics

тест не пройден

public void testFailed (TestDescription testId, 
                String trace)

Параметры
testId TestDescription

trace String

тестИгнорируется

public void testIgnored (TestDescription test)

Параметры
test TestDescription

журнал испытаний

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

Параметры
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Параметры
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Параметры
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Параметры
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Параметры
elapsedTime long

тестНачало

public void testStarted (TestDescription test)

Параметры
test TestDescription

Защищенные методы

getJUnitListener

protected TestListener getJUnitListener ()

Возврат
TestListener