JUnit in Action
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.
What people are saying - Write a review
We haven't found any reviews in the usual places.
Other editions - View all
addhandler AdminServlet application assert asserteguals automated automatically black box tests buildfile Cactus tests called chapter classpath compile components configuration connection container controller create database default DefaultController define DynaBean Dynaproperty Eclipse environment error example execute extends TestCase Figure framework functional tests getContent handler HttpServletRequest HttpURLConnection implementation import java.io import javax import junit in-container InputStream integration unit tests interface Inversion of Control IOException J2EE Java javac Javadoc JBoss JDBC Jetty JNDI Kent Beck Maven mock objects null OrderLocal package junitbook pathelement plugin protected void public class public void refactoring Requesthandler response result run the tests sampling server setup shown in listing software tests source code strategy String stubs suite taglibs target task teardown test classes test methods test runner Test-Driven Development TestCalculator TestDefaultController TestRequest TestResult TestRunner Testsuite throws Exception verify WebClient