A guide to unit testing Java applications (including J2EE applications) using the JUnit framework and its extensions, this book provides techniques for solving real-world problems such as unit testing legacy applications, writing real tests for real objects, automating tests, testing in isolation, and unit testing J2EE and database applications. Using a sample-driven approach, various unit testing strategies are covered, such as how to unit test EJBs, database applications, JSPs, and Taglibs. Also addressed are testing strategies using freely available open source frameworks and tools, and how to unit test in isolation with Mock Objects. Testing J2EE applications by running tests from inside the container for performing integration unit tests is discussed, as is how to automate unit testing in automated builds (such as Ant and Maven) for performing continuous integration.
本来想好好学习研究JUnit的,可有点被书名欺骗的感觉,讲的东西太多了,所以很难深入,不如多讲讲JUnit和单元测试的东西,一本书能让人好好把握一个点就不容易了,泛泛而谈许多不太好。
評分本来想好好学习研究JUnit的,可有点被书名欺骗的感觉,讲的东西太多了,所以很难深入,不如多讲讲JUnit和单元测试的东西,一本书能让人好好把握一个点就不容易了,泛泛而谈许多不太好。
評分JUnit4加入了不少东西的,应该都在第二版里面提到 此外,第二版还介绍了如何与Maven和Hudson集成等等 见:http://www.manning.com/tahchiev/
評分junit 本来很简单,就是一个帮助你进行单元测试的框架。但要写好出好的测试用例,却不容易,要实践测试驱动开发,在开发的时候就考虑到单元测试,那就更不容易了。
評分前言:测试不是最终的目的。 为什么要单元测试: 1 能为我们带来重构的勇气。从而实现快速迭代,渐进式开发。 2 降低对调试的需求。 3 改进实现设计。 如何孤立的测试每个部分: 1 stub策略允许你孤立的测试粗粒度的代码部分。写代码模拟需求环境或者还没有写完的真实代...
in action 泛濫。。。
评分不錯的書,讀瞭兩遍。書中的內容很豐富,而且還引入瞭很多設計模式、J2EE框架的知識,閱讀的次數越多,對書中內容的理解越深刻,我想是值得多次閱讀的書。
评分它不是錶麵的教我們testing,而是解構junit,中間還夾集design pattern。不錯,但卻沒有spring mvc和pojos in action那種震撼
评分in action 泛濫。。。
评分它不是錶麵的教我們testing,而是解構junit,中間還夾集design pattern。不錯,但卻沒有spring mvc和pojos in action那種震撼
本站所有內容均為互聯網搜索引擎提供的公開搜索信息,本站不存儲任何數據與內容,任何內容與數據均與本站無關,如有需要請聯繫相關搜索引擎包括但不限於百度,google,bing,sogou 等
© 2025 book.quotespace.org All Rights Reserved. 小美書屋 版权所有