Android系统单元测试方法(10)
发表于:2011-06-30来源:未知作者:领测软件测试网采编点击数:
标签:
import android.test.ActivityInstrumentationTestCase; public class TestApp extends ActivityInstrumentationTestCaseAndroidUT{ public TestApp() { super ( com.android.ut ,AndroidUT. class ); } public void
import android.test.ActivityInstrumentationTestCase;
public class TestApp extends ActivityInstrumentationTestCase<AndroidUT> {
public TestApp()
{
super("com.android.ut", AndroidUT.class);
}
public void testSum()
{
assertEquals(5, getActivity().add(2, 3));
}
}