摘要:
1、测试类一定要extendsAndroidTestCase 类2、测试方法要以test开头,并抛出异常3、在测试方法中new出要测试的类,然后对应其功能进行测试(经常会用到Assert.assertEquals(a,b);)package com.zhy.junitExample.test;import com.zhy.servers.server;import android.test.AndroidTestCase;public class serverTest extends AndroidTestCase { public void testsave() throws ... 阅读全文