Book: Javaâ„¢ Extreme Programming Cookbook
Brimming with over 100 "recipes" for getting down to business and actually doing XP,the Java Extreme Programming Cookbook doesn’t try to "sell" you on XP; itsuccinctly documents the most important features of popular open source tools for XPin Java– including Ant, Junit, HttpUnit, Cactus, Tomcat, XDoclet– and then digs rightin, providing recipes for implementing the tools in real-world environments.Anyone involved with the open source community or using open source software knows there are tonsof tools available on the market. Keeping up with these tools, and knowing which tools to use andhow to use them, is an intimidating road to travel. We hope to simplify your journey by showingconcise, useful recipes for some of the more popular open source Java tools on the market today.We show you tools like JUnit, JUnitPerf, Mock Objects (more of a concept), and Cactus for testingJava code. We show how to generate EJB files using XDoclet, too. All tools discussed in this book arecompletely executable through Ant, allowing for a complete and stable build environment on anyJava-enabled platform.This is also a book about Extreme Programming (XP), which led us to choose the tools that we did.The XP software development approach does not depend on a particular set of tools; however, theright tools certainly make following XP practices easier. For instance, test-first development is acornerstone of XP, so most of the tools in this book are testing frameworks. XP also demandscontinuous integration, which is where Ant fits in. We are big fans of automation, so we cover theXDoclet code generator as well as describe ways to automate deployment to Tomcat and JBoss.