android单元测试实例二

上传者: tu_tustudio | 上传时间: 2021-06-14 14:48:07 | 文件大小: 603KB | 文件类型: RAR
这是第二个android单元测试实例,测试代码和被测代码在同一个项目中,被测代码中只有一个简单的加法函数

文件下载

资源详情

[{"title":"( 48 个子文件 603KB ) android单元测试实例二","children":[{"title":"Aut02","children":[{"title":".project <span style='color:#111;'> 841B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 113B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 409B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 110B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 311B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 491B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Aut02.apk <span style='color:#111;'> 144.14KB </span>","children":null,"spread":false},{"title":"resources.ap_ <span style='color:#111;'> 9.68KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"ut","children":[{"title":"TestMainActivity.class <span style='color:#111;'> 713B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"example","children":[{"title":"aut02","children":[{"title":"R$string.class <span style='color:#111;'> 510B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 400B </span>","children":null,"spread":false},{"title":"MainActivity.class <span style='color:#111;'> 921B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 394B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 616B </span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes.dex <span style='color:#111;'> 318.85KB </span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 208B </span>","children":null,"spread":false}],"spread":true},{"title":"ic_launcher-web.png <span style='color:#111;'> 17.73KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 341.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"ut","children":[{"title":"TestMainActivity.java <span style='color:#111;'> 680B </span>","children":null,"spread":false}],"spread":true},{"title":"com","children":[{"title":"example","children":[{"title":"aut02","children":[{"title":"MainActivity.java <span style='color:#111;'> 567B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"project.properties <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"styles.xml <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 239B </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 508B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 94B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"ic_action_search.png <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 108B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 364B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"aut02","children":[{"title":"R.java <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"BuildConfig.java <span style='color:#111;'> 159B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"assets","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • soul900524 :
    正在学习单元测试中,很不错的例子~谢谢分享
    2017-01-11
  • love20zs :
    还在学习,谢谢分享
    2016-02-14
  • changlei_shennan :
    很实用初学者,很好
    2014-10-30
  • lovecuiteducn :
    还行吧,只是稍微简单了点
    2014-04-08
  • bluesky_liuyong :
    很好的资源,谢谢
    2014-04-08

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明