2010-08-02 32 views

回答

0

查看这两个类的文档,它看起来像SingleLaunchActivityTestCase是InstrumentationTestCase的包装类。您应该能够像使用InstrumentationTestCase一样使用它;唯一的区别是在构造函数中。

根据文档,您需要包名和活动的类类型。一个典型的例子可能是:

SingleLaunchActivityTestCase myTestCase; 
myTestCase = new SingleLaunchActivityTestCase("com.mycompany.myproject", MyActivity.class); 
相关问题