首页 开发技术 Java     /    TDD(Test-DrivenDevelopment)的Demo

TDD(Test-DrivenDevelopment)的Demo

上传者: daiyy0921 | 上传时间:2023/10/6 15:37:02 | 文件大小:7.46MB | 文件类型:rar
TDD(Test-DrivenDevelopment)的Demo
TDD(Test-DrivenDevelopment)测试驱动开发是敏捷开发中的一项核心实践和技术,也是一种设计方法论。
TDD得原理是在开发功能代码之前,先编写单元测试用例代码,测试代码确定需要编写什么产品代码。
TDD虽是敏捷方法的核心实践,但不只适用于XP(ExtremeProgramming),同样可以适用于其他开发方法和过程。
TDD得基本思路就是通过测试来推动整个开发得进行,但测试驱动开发并不只是单纯的测试工作,而是把需求分析,设计,质量控制量化的过程。
TDD的重要目的不仅仅是测试软件,测试工作保证代码质量仅仅是其中一部分,而且是在开发过程中帮助客户和程序员去除模棱两可的需求。
TDD首先考虑使用需求(对象、功能、过程、接口等),主要是编写测试用例框架对功能的过程和接口进行设计,而测试框架可以持续进行验证。

文件下载

资源详情

[{"title":"(99个子文件7.46MB)TDD(Test-DrivenDevelopment)的Demo","children":[{"title":"springmvc","children":[{"title":"build.properties <span style='color:#111;'>531B</span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"spring","children":[{"title":"mvc","children":[{"title":"dao","children":[{"title":"ProductDao.java <span style='color:#111;'>217B</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"JdbcProductDao.java <span style='color:#111;'>1.72KB</span>","children":null,"spread":false},{"title":"InMemoryProductDao.java <span style='color:#111;'>457B</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"service","children":[{"title":"PriceIncrease.java <span style='color:#111;'>458B</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ProductManagerImpl.java <span style='color:#111;'>1.02KB</span>","children":null,"spread":false}],"spread":true},{"title":"PriceIncreaseValidator.java <span style='color:#111;'>1.60KB</span>","children":null,"spread":false},{"title":"ProductManager.java <span style='color:#111;'>277B</span>","children":null,"spread":false}],"spread":true},{"title":"web","children":[{"title":"action","children":[{"title":"HelloController.java <span style='color:#111;'>839B</span>","children":null,"spread":false},{"title":"PriceIncreaseFormController.java <span style='color:#111;'>1.58KB</span>","children":null,"spread":false},{"title":"InventoryController.java <span style='color:#111;'>1.22KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"entry","children":[{"title":"Product.java <span style='color:#111;'>833B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"messages.properties <span style='color:#111;'>420B</span>","children":null,"spread":false}],"spread":true},{"title":"bin","children":[{"title":"com","children":[{"title":"spring","children":[{"title":"mvc","children":[{"title":"dao","children":[{"title":"JdbcProductDaoTest.class <span style='color:#111;'>2.41KB</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"JdbcProductDao.class <span style='color:#111;'>2.76KB</span>","children":null,"spread":false},{"title":"JdbcProductDao$ProductMapper.class <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"InMemoryProductDao.class <span style='color:#111;'>953B</span>","children":null,"spread":false}],"spread":true},{"title":"ProductDao.class <span style='color:#111;'>297B</span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"ProductManager.class <span style='color:#111;'>307B</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ProductManagerImpl.class <span style='color:#111;'>1.78KB</span>","children":null,"spread":false}],"spread":true},{"title":"PriceIncreaseValidator.class <span style='color:#111;'>2.75KB</span>","children":null,"spread":false},{"title":"PriceIncrease.class <span style='color:#111;'>1.03KB</span>","children":null,"spread":false},{"title":"ProductManagerImplTest.class <span style='color:#111;'>3.69KB</span>","children":null,"spread":false}],"spread":true},{"title":"web","children":[{"title":"action","children":[{"title":"HelloControllerTest.class <span style='color:#111;'>1.35KB</span>","children":null,"spread":false},{"title":"InventoryController.class <span style='color:#111;'>2.17KB</span>","children":null,"spread":false},{"title":"PriceIncreaseFormController.class <span style='color:#111;'>2.37KB</span>","children":null,"spread":false},{"title":"HelloController.class <span style='color:#111;'>1.53KB</span>","children":null,"spread":false},{"title":"InventoryControllerTest.class <span style='color:#111;'>1.84KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"entry","children":[{"title":"Product.class <span style='color:#111;'>1.56KB</span>","children":null,"spread":false},{"title":"ProductTest.class <span style='color:#111;'>1.36KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"messages.properties <span style='color:#111;'>420B</span>","children":null,"spread":false},{"title":"test-context.xml <span style='color:#111;'>1.25KB</span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'>2.78KB</span>","children":null,"spread":false},{"title":"db","children":[{"title":"mydb.log <span style='color:#111;'>1.22KB</span>","children":null,"spread":false},{"title":"mydb.tmp","children":null,"spread":false},{"title":"mydb.properties <span style='color:#111;'>89B</span>","children":null,"spread":false},{"title":"mydb.lck <span style='color:#111;'>16B</span>","children":null,"spread":false},{"title":"create_products.sql <span style='color:#111;'>176B</span>","children":null,"spread":false},{"title":"mydb.script <span style='color:#111;'>2.01KB</span>","children":null,"spread":false},{"title":"server.sh <span style='color:#111;'>191B</span>","children":null,"spread":false},{"title":"load_data.sql <span style='color:#111;'>296B</span>","children":null,"spread":false},{"title":"server.bat <span style='color:#111;'>109B</span>","children":null,"spread":false}],"spread":true},{"title":".project <span style='color:#111;'>385B</span>","children":null,"spread":false},{"title":"build.xml <span style='color:#111;'>10.29KB</span>","children":null,"spread":false},{"title":"war","children":[{"title":"jsp","children":[{"title":"include.jsp <span style='color:#111;'>157B</span>","children":null,"spread":false},{"title":"hello.jsp <span style='color:#111;'>717B</span>","children":null,"spread":false},{"title":"priceincrease.jsp <span style='color:#111;'>1.02KB</span>","children":null,"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'>149B</span>","children":null,"spread":false},{"title":"WEB-INF","children":[{"title":"classes","children":[{"title":"com","children":[{"title":"spring","children":[{"title":"mvc","children":[{"title":"dao","children":[{"title":"JdbcProductDaoTest.class <span style='color:#111;'>2.43KB</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"JdbcProductDao$1.class <span style='color:#111;'>241B</span>","children":null,"spread":false},{"title":"JdbcProductDao.class <span style='color:#111;'>2.74KB</span>","children":null,"spread":false},{"title":"JdbcProductDao$ProductMapper.class <span style='color:#111;'>1.74KB</span>","children":null,"spread":false},{"title":"InMemoryProductDao.class <span style='color:#111;'>953B</span>","children":null,"spread":false}],"spread":false},{"title":"ProductDao.class <span style='color:#111;'>297B</span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"ProductManager.class <span style='color:#111;'>307B</span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ProductManagerImpl.class <span style='color:#111;'>1.79KB</span>","children":null,"spread":false}],"spread":false},{"title":"PriceIncreaseValidator.class <span style='color:#111;'>2.69KB</span>","children":null,"spread":false},{"title":"PriceIncrease.class <span style='color:#111;'>1.06KB</span>","children":null,"spread":false},{"title":"ProductManagerImplTest.class <span style='color:#111;'>3.69KB</span>","children":null,"spread":false}],"spread":false},{"title":"web","children":[{"title":"action","children":[{"title":"HelloControllerTest.class <span style='color:#111;'>1.35KB</span>","children":null,"spread":false},{"title":"InventoryController.class <span style='color:#111;'>2.14KB</span>","children":null,"spread":false},{"title":"PriceIncreaseFormController.class <span style='color:#111;'>2.37KB</span>","children":null,"spread":false},{"title":"HelloController.class <span style='color:#111;'>1.50KB</span>","children":null,"spread":false},{"title":"InventoryControllerTest.class <span style='color:#111;'>1.84KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"entry","children":[{"title":"Product.class <span style='color:#111;'>1.56KB</span>","children":null,"spread":false},{"title":"ProductTest.class <span style='color:#111;'>1.36KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"jdbc.properties <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"messages.properties <span style='color:#111;'>420B</span>","children":null,"spread":false}],"spread":true},{"title":"tld","children":[{"title":"spring-form.tld <span style='color:#111;'>72.39KB</span>","children":null,"spread":false}],"spread":true},{"title":"applicationContext.xml <span style='color:#111;'>2.00KB</span>","children":null,"spread":false},{"title":"spring-servlet.xml <span style='color:#111;'>2.54KB</span>","children":null,"spread":false},{"title":"lib","children":[{"title":"org.springframework.test-3.1.0.M2.jar <span style='color:#111;'>220.46KB</span>","children":null,"spread":false},{"title":"org.springframework.jdbc-3.1.0.M2.jar <span style='color:#111;'>389.18KB</span>","children":null,"spread":false},{"title":"commons-logging-1.1.1.jar <span style='color:#111;'>59.42KB</span>","children":null,"spread":false},{"title":"org.springframework.aop-3.1.0.M2.jar <span style='color:#111;'>321.81KB</span>","children":null,"spread":false},{"title":"org.springframework.expression-3.1.0.M2.jar <span style='color:#111;'>172.17KB</span>","children":null,"spread":false},{"title":"commons-pool-1.5.6.jar <span style='color:#111;'>98.12KB</span>","children":null,"spread":false},{"title":"org.springframework.web-3.1.0.M2.jar <span style='color:#111;'>479.54KB</span>","children":null,"spread":false},{"title":"junit.jar <span style='color:#111;'>215.31KB</span>","children":null,"spread":false},{"title":"servlet-api.jar <span style='color:#111;'>172.69KB</span>","children":null,"spread":false},{"title":"org.springframework.context-3.1.0.M2.jar <span style='color:#111;'>791.05KB</span>","children":null,"spread":false},{"title":"org.hamcrest.core_1.1.0.v20090501071000.jar <span style='color:#111;'>27.17KB</span>","children":null,"spread":false},{"title":"org.springframework.asm-3.1.0.M2.jar <span style='color:#111;'>51.83KB</span>","children":null,"spread":false},{"title":"jstl.jar <span style='color:#111;'>20.20KB</span>","children":null,"spread":false},{"title":"standard.jar <span style='color:#111;'>384.04KB</span>","children":null,"spread":false},{"title":"hsqldb.jar <span style='color:#111;'>1.31MB</span>","children":null,"spread":false},{"title":"aopalliance-1.0.0.jar <span style='color:#111;'>4.51KB</span>","children":null,"spread":false},{"title":"org.springframework.web.servlet-3.1.0.M2.jar <span style='color:#111;'>523.87KB</span>","children":null,"spread":false},{"title":"org.springframework.transaction-3.1.0.M2.jar <span style='color:#111;'>240.73KB</span>","children":null,"spread":false},{"title":"org.springframework.core-3.1.0.M2.jar <span style='color:#111;'>419.57KB</span>","children":null,"spread":false},{"title":"aspectjweaver.jar <span style='color:#111;'>1.80MB</span>","children":null,"spread":false},{"title":"org.springframework.beans-3.1.0.M2.jar <span style='color:#111;'>570.73KB</span>","children":null,"spread":false},{"title":"commons-dbcp-1.4.jar <span style='color:#111;'>156.76KB</span>","children":null,"spread":false}],"spread":false},{"title":"web.xml <span style='color:#111;'>1.05KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"com","children":[{"title":"spring","children":[{"title":"mvc","children":[{"title":"dao","children":[{"title":"JdbcProductDaoTest.java <span style='color:#111;'>1.34KB</span>","children":null,"spread":false}],"spread":true},{"title":"service","children":[{"title":"ProductManagerImplTest.java <span style='color:#111;'>3.28KB</span>","children":null,"spread":false}],"spread":false},{"title":"web","children":[{"title":"action","children":[{"title":"HelloControllerTest.java <span style='color:#111;'>576B</span>","children":null,"spread":false},{"title":"InventoryControllerTest.java <span style='color:#111;'>1.10KB</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"entry","children":[{"title":"ProductTest.java <span style='color:#111;'>687B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"test-context.xml <span style='color:#111;'>1.25KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • 飞纸鹤:
    挺好的资料2015-07-07
  • 鬼头猫:
    还不错,感谢分享,对初学者很有帮助2012-12-17
  • hanyao1847:
    不错,适合初学者。2012-12-04
  • feiyue_163:
    挺好的资料,适合初学者。2012-12-03
  • xsj1985:
    可惜是java的.2012-04-26

免责申明

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