具体描述
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 本来很简单,就是一个帮助你进行单元测试的框架。但要写好出好的测试用例,却不容易,要实践测试驱动开发,在开发的时候就考虑到单元测试,那就更不容易了。
内容比较古老了,还是junit3的。不过内容还可以,笔风比较亲切,内容的安排也比较全面合理。看完后切换到junit4也不觉得难.
内容比较古老了,还是junit3的。不过内容还可以,笔风比较亲切,内容的安排也比较全面合理。看完后切换到junit4也不觉得难.
JUnit4加入了不少东西的,应该都在第二版里面提到 此外,第二版还介绍了如何与Maven和Hudson集成等等 见:http://www.manning.com/tahchiev/
JUnit4加入了不少东西的,应该都在第二版里面提到 此外,第二版还介绍了如何与Maven和Hudson集成等等 见:http://www.manning.com/tahchiev/
用户评价
in action 泛滥。。。
in action 泛滥。。。
它不是表面的教我們testing,而是解構junit,中間還夾集design pattern。不錯,但卻沒有spring mvc和pojos in action那種震撼
xxx in action系列的书的质量永远都值得人信任
in action 泛滥。。。