JUnit in Action, Second Edition

Book description

JUnit is the leading Java unit testing framework and its version 4.8 significantly improves the Java development process. Designed for productivity, it has extensions for newer application styles—like Ajax and HTML-based presentation layers—and for application frameworks like EJB and OSGi.

JUnit in Action, Second Edition is an entirely revised and up-to-date guide to unit testing Java applications. It provides techniques for solving real-world problems such as using mocks for testing isolation, in-container testing for Java EE and database applications, and test automation. In an example-driven style, it covers JUnit 4.8 innovations such as the new annotations that simplify test writing, improved exception handling, and the new assertion methods. Along the way, you'll learn to integrate JUnit with other important open source frameworks and tools.



About the Technology

JUnit is the leading Java unit testing framework and its version 4.8 significantly improves the Java development process. Designed for productivity, it has extensions for newer application styles—like Ajax and HTML-based presentation layers—and for application frameworks like EJB and OSGi.



About the Book

JUnit in Action, Second Edition is an entirely revised and up-to-date guide to unit testing Java applications. It provides techniques for solving real-world problems such as using mocks for testing isolation, in-container testing for Java EE and database applications, and test automation. In an example-driven style, it covers JUnit 4.8 innovations such as the new annotations that simplify test writing, improved exception handling, and the new assertion methods. Along the way, you'll learn to integrate JUnit with other important open source frameworks and tools.



What's Inside
  • Introduction to unit testing
  • Blends JUnit with TDD, BDD, Continuous Integration, and other best practices
  • Unit testing of database and web applications


About the Reader


About the Authors

Petar Tahchiev is a software engineer with HP and the Jakarta Cactus lead developer. Felipe Leme is a JCP member and contributor to DbUnit and Cactus. Gary Gregory is a Java developer with 20+ years of experience who currently develops application servers for legacy integration. Vincent Massol was the author of the first edition of JUnit in Action.



Quotes
The definitive guide, not just for JUnit, but unit testing in general.
- Tyson S. Maxwell, Raytheon

I recommend this book to anyone who is serious about testing with JUnit.
- Robert Hanson, Author of GWT in Action

Gives a solid foundation for unit testing, especially with Ant/Maven and Eclipse.
- Doug Warren, Java Web Services

This book shows how to test it all--leaves no stone unturned.
- John Griffin, Coauthor of Hibernate Search in Action

Product information

  • Title: JUnit in Action, Second Edition
  • Author(s): Felipe Leme
  • Release date: June 2010
  • Publisher(s): Manning Publications
  • ISBN: 9781935182023