InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
ITestInvocationListener
이벤트를 수신하고 이를 TestListener
에 전달하는 클래스입니다.
요약
공개 생성자
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
매개변수 |
---|
junitListener | TestListener |
공개 메소드
getSummary
public TestSummary getSummary ()
호출종료됨
public void invocationEnded (long elapsedTime)
호출 실패
public void invocationFailed (Throwable cause)
호출시작됨
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)
테스트실행시작됨
public void testRunStarted (String runName,
int testCount)
매개변수 |
---|
runName | String |
testCount | int |
테스트실행중지됨
public void testRunStopped (long elapsedTime)
테스트시작됨
public void testStarted (TestDescription test)
매개변수 |
---|
test | TestDescription |
보호된 방법
getJUnitListener
protected TestListener getJUnitListener ()