InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


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)

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)

保護されたメソッド

TestListener getJUnitListener()

パブリック コンストラクタ

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

パラメータ
junitListener TestListener

パブリック メソッド

getSummary

public TestSummary getSummary ()

戻り値
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

パラメータ
elapsedTime long

invocationFailed

public void invocationFailed (Throwable cause)

パラメータ
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

パラメータ
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

パラメータ
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

パラメータ
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription testId, 
                String trace)

パラメータ
testId TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

パラメータ
test TestDescription

testLog

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

testStarted

public void testStarted (TestDescription test)

パラメータ
test TestDescription

保護されたメソッド

getJUnitListener

protected TestListener getJUnitListener ()

戻り値
TestListener