InvocationToJUnitResultForwarder
public class InvocationToJUnitResultForwarder
extends Object
implements ITestInvocationListener
java.lang.オブジェクト |
↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder |
ITestInvocationListener
イベントをリッスンし、それらをTestListener
に転送するクラス。
まとめ
パブリックコンストラクター
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
パラメーター |
---|
junitListener | TestListener |
パブリックメソッド
get概要
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)
パラメーター |
---|
errorMessage | String |
テスト実行開始しました
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 ()