com.android.tradefed.testtype.junit4

註解

AfterClassWithInfo AfterClass 類似的保證,但註解的方法必須需要 TestInformation 參數。 
BeforeClassWithInfo BeforeClass 類似的保證,但註解的方法必須需要 TestInformation 參數。 

類別

BaseHostJUnit4Test 用於執行主機 JUnit4 樣式測試的基礎測試類別。 
DeviceParameterizedRunner 適用於主機端驅動參數化測試的 JUnit4 樣式參數化執行器。 
DeviceTestRunOptions 這個類別是建構工具,用於處理透過 BaseHostJUnit4Test 執行裝置測試的相關選項。 
ExceptionThrowingRunnerWrapper  
JUnit4ResultForwarder JUnit4 Runner 的結果轉送器。 
RunAftersWithInfo  
RunBeforesWithInfo  
RunNotifierWrapper RunNotifier 的包裝函式,以便攜帶 DeviceNotAvailableException。 

例外狀況

CarryDnaeError 內部 RuntimeException,透過 JUnit4 框架傳送 DeviceNotAvailableException。 
CarryInterruptedException 測試階段逾時觸發時擲回,且 InterruptedException 需要從測試執行緒傳輸至叫用執行緒。