InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.InvocationToJUnitResultForwarder


Une classe qui écoute les événements ITestInvocationListener et les transmet à un TestListener .

Résumé

Constructeurs publics

InvocationToJUnitResultForwarder (TestListener junitListener)

Méthodes publiques

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)

Méthodes protégées

TestListener getJUnitListener ()

Constructeurs publics

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Paramètres
junitListener TestListener

Méthodes publiques

getRésumé

public TestSummary getSummary ()

Retour
TestSummary

invocationFin

public void invocationEnded (long elapsedTime)

Paramètres
elapsedTime long

échec de l'appel

public void invocationFailed (Throwable cause)

Paramètres
cause Throwable

invocationDémarrée

public void invocationStarted (IInvocationContext context)

Paramètres
context IInvocationContext

testhypothèseéchec

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Paramètres
testId TestDescription

trace String

testFin

public void testEnded (TestDescription test, 
                 testMetrics)

Paramètres
test TestDescription

testMetrics

test échoué

public void testFailed (TestDescription testId, 
                String trace)

Paramètres
testId TestDescription

trace String

testIgnoré

public void testIgnored (TestDescription test)

Paramètres
test TestDescription

journal de test

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

Paramètres
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Paramètres
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Paramètres
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Paramètres
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Paramètres
elapsedTime long

testDémarré

public void testStarted (TestDescription test)

Paramètres
test TestDescription

Méthodes protégées

getJUnitListener

protected TestListener getJUnitListener ()

Retour
TestListener