2010-08-02 31 views

回答

0

查看這兩個類的文檔,它看起來像SingleLaunchActivityTestCase是InstrumentationTestCase的包裝類。您應該能夠像使用InstrumentationTestCase一樣使用它;唯一的區別是在構造函數中。

根據文檔,您需要包名和活動的類類型。一個典型的例子可能是:

SingleLaunchActivityTestCase myTestCase; 
myTestCase = new SingleLaunchActivityTestCase("com.mycompany.myproject", MyActivity.class); 
相關問題