InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

Objeto java.lang.
   ↳ com.android.tradefed.result.InvocationToJUnitResultForwarder.


Una clase que escucha los eventos ITestInvocationListener y los reenvía a un TestListener

Resumen

Constructores públicos

InvocationToJUnitResultForwarder(TestListener junitListener)

Métodos públicos

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)

void testFailed(TestDescription testId, String trace)

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

void testRunEnded(long elapsedTime, runMetrics)

void testRunFailed(String errorMessage)

void testRunStarted(String runName, int testCount)

void testRunStopped(long elapsedTime)

void testStarted(TestDescription test)

Métodos protegidos

TestListener getJUnitListener()

Constructores públicos

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Parámetros
junitListener TestListener

Métodos públicos

getSummary

public TestSummary getSummary ()

Muestra
TestSummary

invocaciónFinalizada

public void invocationEnded (long elapsedTime)

Parámetros
elapsedTime long

Error de invocación

public void invocationFailed (Throwable cause)

Parámetros
cause Throwable

iniciación de invocación

public void invocationStarted (IInvocationContext context)

Parámetros
context IInvocationContext

ErrordeAsuncióndeprueba

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Parámetros
testId TestDescription

trace String

pruebaFinalizada

public void testEnded (TestDescription test, 
                 testMetrics)

Parámetros
test TestDescription

testMetrics

Prueba con errores

public void testFailed (TestDescription testId, 
                String trace)

Parámetros
testId TestDescription

trace String

pruebaIgnorada

public void testIgnored (TestDescription test)

Parámetros
test TestDescription

Registro de prueba

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

Parámetros
dataName String

logData LogDataType

dataStream InputStreamSource

pruebaRunfinalizada

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

Error de ejecución de prueba

public void testRunFailed (String errorMessage)

Parámetros
errorMessage String

pruebaRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parámetros
runName String

testCount int

pruebaRundetenida

public void testRunStopped (long elapsedTime)

Parámetros
elapsedTime long

Iniciodeprueba

public void testStarted (TestDescription test)

Parámetros
test TestDescription

Métodos protegidos

getJUnitListener

protected TestListener getJUnitListener ()

Muestra
TestListener