JUnit in Action, Second Edition![]() Petar Tahchiev, Felipe Leme, Vincent Massol, and Gary Gregory MEAP Began: September 2008 Softbound print: June 2010 (est.) | 375 pages ISBN: 9781935182023 |
|||
| Pre-Order options* | |||
| Order today and start reading JUnit in Action, Second Edition today through MEAP | |||
| MEAP + Ebook only - $27.50 | |||
| MEAP + Print book (includes Ebook) when available - $44.99 | |||
| Every purchase includes a free ebook of the previous edition! | |||
| * For more information, please see the MEAP FAQs page. | |||
| About MEAP Release Date Estimates | |||
Table of Contents, MEAP Chapters & Resources
| Table of Contents | Resources | |
|
Part I JUnit
1. JUnit jumpstart - FREE 2. Exploring JUnit4 - AVAILABLE 3. Software testing principles - AVAILABLE 4. Software tests at their best - AVAILABLE Part II Testing strategies 5. Stubs - AVAILABLE 6. Mock objects - AVAILABLE 7. In-container testing - AVAILABLE Part III JUnit and the build process 8. Running JUnit tests from Ant - AVAILABLE 9. Running JUnit tests from Maven2 - AVAILABLE 10. CI tools - AVAILABLE |
Part IV JUnit extensions
11. Presentation layer testing - AVAILABLE 12. AJAX testing - AVAILABLE 13. Server-side testing with Cactus - AVAILABLE 14. Server-side JSF testing with JSFUnit - AVAILABLE 15. Testing OSGi components - AVAILABLE 16. Database testing with DBUnit - AVAILABLE 17. Testing JPA-based applications - AVAILABLE 18. JUnit on steroids - AVAILABLE Appendices A. Differences between JUnit 3.x and JUnit 4 - AVAILABLE B. Extending JUnit API - AVAILABLE C. Source code |
|
DESCRIPTION
When JUnit was first introduced a decade ago by Kent Beck and Erich Gamma, the Agile movement was in its infancy, "Test Driven Development" was unknown, and unit testing was just starting to move into the typical developer's vocabulary. Today, most developers acknowledge the benefits of unit testing and rely on the increasingly sophisticated tools now available. The recently released JUnit 4.5 represents the state of the art in unit testing frameworks, and provides significant new features to improve the Java development process.
JUnit in Action, Second Edition is an up-to-date guide to unit testing Java applications (including Java EE applications) using the JUnit framework and its extensions. This book provides techniques for solving real-world problems such as testing AJAX applications, using mocks to achieve testing isolation, in-container testing for Java EE and database applications, and test automation.
Written to help readers exploit JUnit 4.5, the book covers recent innovations such as the new annotations that simplify test writing, improved exception handling, and the new assertion methods. You'll also discover how to use JUnit extensions to test new application styles and frameworks including Ajax, OSGi, and HTML-based presentation layers.
Using a sample-driven approach, various unit testing strategies are covered, such as how to unit test EJBs, database applications, and web applications. Also addressed are testing strategies using freely available open source frameworks and tools, and how to unit test in isolation with Mock Objects. The book will also bring you up to speed on the latest thinking in TDD, BDD, Continuous Integration, and other practices related to unit testing.
About the Authors
Building on the first edition by Vincent Massol and Ted Husted, authors Petar Tahchiev, Felipe Leme, and Gary Gregory team up to provide a completely-updated version of this Manning classic.
Petar Tahchiev is a software engineer with Hewlett Packard and serves as the Jakarta Cactus lead developer and a Jakarta PMC member with the Apache Software Foundation. He is also part of the Apache Maven development team, also leader of the Bulgarian Java User Group (BGJUG) and a frequent speaker at OpenFest, ApacheCON, CommunityONE, and other conferences.
Felipe Leme has worked as a software engineer with Java since 1996 and is an active member of the community. He is a four-time repeat speaker at JavaOne, has written dozens of Java-related articles, and contributed to many open source projects including DbUnit and Jakarta Cactus, and became an individual JCP in 2003.
Vincent Massol is Chief Technology Officer of XWiki which develops open source enterprise wikis and collaborative software products. Vince is the creator of the Jakarta Cactus testing framework, a long time member of the Apache Maven project and an active committer of the XWiki development team. He's the author of "JUnit in Action", "Better Builds with Maven" and "Maven: A Developer's notebook". He lives in the City of Light, Paris, France.
Gary Gregory has 20+ years’ experience in object-oriented languages including Smalltalk, Java and the whole soup of XML and database technologies. He has held positions at Ashton-Tate, ParcPlace-Digitalk and several other software companies, including Seagull Software, where he currently develops application servers for legacy integration. He is an active member of The Apache Software Foundation, the Apache Jakarta Project Management Committee and contributes regularly to various Apache Commons projects. Born and raised in Paris, France, Gary received a B.A. in Linguistics and Computer Science from the University of California at Los Angeles. He lives in Manhattan Beach, California, with his wife, son, golf clubs and assorted surfboards. He can be reached via http://www.garygregory.com.
About the Early Access Version
This Early Access version of JUnit in Action, Second Edition enables you to receive new chapters as they are being written. You can also interact with the authors to ask questions, provide feedback and errata, and help shape the final manuscript on the Author Online
Want to learn More?
Sign up to read more content when it is released and to receive news about this book.


