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) 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 ()

공개 생성자

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

매개변수
junitListener TestListener

공개 메소드

getSummary

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

테스트 종료됨

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

테스트실행이 종료됨

public void testRunEnded (long elapsedTime, 
                 runMetrics)

매개변수
elapsedTime long

runMetrics

테스트실행실패

public void testRunFailed (String errorMessage)

매개변수
errorMessage String

테스트실행시작됨

public void testRunStarted (String runName, 
                int testCount)

매개변수
runName String

testCount int

테스트실행중지됨

public void testRunStopped (long elapsedTime)

매개변수
elapsedTime long

테스트시작됨

public void testStarted (TestDescription test)

매개변수
test TestDescription

보호된 방법

getJUnitListener

protected TestListener getJUnitListener ()

보고
TestListener