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