Android ???????
???????????? ???????[ 2014/4/23 13:02:54 ] ????????Android ???????
????Junit??????????????????????
???????????????????????????????Junit?????
???????????????
???????????AndroidManifest.xml???????????
????<!-- ???????е?????????????????application????activity???? -->
????<uses-library android:name="android.test.runner"/>
????<!-- ????????????application???棬??????????????? ??? -->
???????????????????com.example.demo_junit??????????
????<instrumentation
????android:name="android.test.InstrumentationTestRunner"
????android:targetPackage="com.example.demo_junit">
????</instrumentation>
????????д?????????????
????????????AndroidManifest.xml??????????
???????????Service??
1 public class Service {
2 public int add(int a??int b){
3 return a+b;
4 }
5 }
????????????Junit????????????AndroidTestCase??
1 public class Junit extends AndroidTestCase {
2 public void test(){
3 Service service=new Service();
4 System.out.println(service.add(2?? 5));
5 }
6 }
??????????????????????
???????????????Junit???test()???????????????????Run As/Android JUnit Test???ɡ?
????????????????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11