JUnit in Action

JUnit in Action

Book - 2011
Average Rating:
Rate this:

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.

Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

Publisher: Greenwich : Manning, c2011.
Edition: 2nd ed.
ISBN: 9781935182023
Branch Call Number: 005.262 JAVA JUnit 12/2010
Characteristics: xxxiii, 467 p. :,ill. ;,24 cm.
Additional Contributors: Massol, Vincent
Tahchiev, Petar


From the critics

Community Activity


Add a Comment

Dec 08, 2010

This book talks a little about JUnit and a lot about all the other testing products such as selenium, cactus (and jsfunit, dbunit, htmlunit).

It also, surprisingly has chapters on build-related products such as
Cobertura, ant, maven2.

It talks about mock objects, and touches on testing JPA, and OSGI.

The book covers JUnit 4.6 and was published in 2010, despite what the cover says.


Add Age Suitability

There are no ages for this title yet.


Add a Summary

There are no summaries for this title yet.


Add Notices

There are no notices for this title yet.


Add a Quote

There are no quotes for this title yet.

Explore Further

Browse by Call Number


Subject Headings


Find it at My Library

To Top