InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

java.lang.オブジェクト
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

パブリックメソッド

get概要

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