The Extreme Programming (XP) methodology enables you to build and test enterprise systems quickly without sacrificing quality. In the last few years, open source developers have created or significantly improved a host of Java XP tools, from XDoclet, Maven, AntHill, and Eclipse to Ant, JUnit, and Cactus. This practical, code-intensive guide shows you how to put these tools to work — and capitalize on the benefits of Extreme Programming.
Using an example pet store application, our expert Java developers demonstrate how to harness the latest versions of Ant and XDoclet for automated building and continuous integration. They then explain how to automate the testing process using JUnit, Cactus, and other tools, and to enhance project management and continuous integration through Maven and AntHill. Finally, they show you how to work with XP tools in the new Eclipse IDE.
Complete with real-world advice on how to implement the principles and practices of effective developers, this book delivers everything you need to harness the power of Extreme Programming in your own projects.
What does this book cover?
Here are some of the things you'll find out about in this book:
- How to automate the building of J2EE apps and components with Ant and XDoclet
- Techniques for automating Java testing using JUnit
- Procedures for automating servlet, JSP, and other J2EE testing using Cactus
- Ways to automate Swing testing with Jemmy, JFCUnit, and Abbot
- How to manage projects using Maven
- Techniques for automating continuous integration with AntHill and Cruise Control
- How to harness plugins for JUnit, Cactus, and Ant in the Eclipse IDE
- Ways to implement Extreme Programming best practices
Who is this book for?
This book is for enterprise Java developers who have a general familiarity with the XP methodology and want to put leading Java XP tools to work in the development process.
Related collections and offers
About the Author
Warner Onstine is a founder and CTO of Interface Guru, a leading Web Usability firm where he consults on back-end technology issues with specific emphasis on how technology and usability work together to present the user with an easy-to-use interface. Warner also runs his own custom development shop, Sandcast Software, which focuses on community and team-oriented software. Warner got his first computer, a TI-99 4/A, when he was 9 and almost immediately attempted to program a game in Basic on it, which did not work. He stubbornly refuses to get rid of that machine though, along with his trusty NeXT Turbo MonoStation, upon which he got his first taste of Objective-C. This eventually led to Java, skipping right over C++. His strong community background soon led him to open source, where he has had the chance to meet and interact with several incredible individuals from Jakarta and other open source communities. This also has helped him to keep an open eye on the trends that will soon shape the new landscape—one of his specialties. Another skill he has is in assisting companies with making the right choices at the right time, utilizing XP, in-depth knowledge of their subject area, and the currently available tools germane to their problem. Warner is also a co-founder and President of the Tucson Java Users Group, which he helped form in 2001, which keeps him rather busy at times. Previously, Warner worked at eBlox, Inc. (a Web development company), Intalio, Inc. (a bay-area Business Process Management Server company), and the University of Arizona Main Library on the Digital Library Team.
Paul Visan is an expert J2EE developer. He serves as a Principal Software Engineer for eBlox, Inc, where he finds that open source tools are invaluable to his work. Paul is a proud Romanian native, now living in the heart of Tucson Arizona. He is a regular contributor to IBM’s developerWorks, for which he has written a series of tutorials on Java Web Services. Paul would like to thank Andrew Barton, Nicholas Lesiecki, Tim Ryan, and Victoria McSherry for helping with this book.
Damon Payne currently works as the Microsoft Business Group manager for Centare Group, Ltd. in Milwaukee, WI. Damon is very passionate about open source technology in the Java and Microsoft .NET worlds. His other professional interests include Mobile development, data persistence patterns, and product development. When not programming or speaking Damon enjoys raising his wonderful daughter, Brooke, home theater, and music.
Joseph D. Gradecki is a software engineer at Comprehensive Software Solutions, where he works on their SABIL product, a enterprise-level securities processing system. He has built numerous dynamic, enterprise applications using Java, AspectJ, servlets, JSPs, Resin, MySQL, BroadVision, XML, and more. He is the author of Mastering JXTA and the coauthor of MySQL and Java Developer's Guide (with Mark Matthews and Jim Cole). Joeholds Bachelors and Masters degrees in Computer Science and is currently pursuing a Ph.D.
Kate Rhodes is a self-taught programmer, serial entrepreneur, and occasional musician with a Japanese nickname and an unstoppable urge to learn new things, solve new problems, and write open source apps. She’s got too many pets, too many projects, and too little time. If she could afford an army of programming minions she’d have one. She’s ranked better than most and worse than some. She’s worked in impressive places you’ve possibly heard of and unimpressive places you’ve never heard of. She’s done some stuff she’s very proud of and some she isn’t. And so long as life keeps offering up interesting new challenges for her to learn from, she’s happy. If you’re overcome with curiosity you can always see what Kate and her wife are up to at www.masukomi.org.
Robert Watkins is a Brisbane, Australia-based software developer of nine years’ experience. He’s been called a programmer, a software engineer, an architect, and a few other things (many unprintable), but mostly ignores the titles and does what he has to do. These days he is mostly working in J2EE and related technologies, and is a passionate advocate of agile development techniques. When not working, he spends most of his time with his wife and twin children, and when he gets a chance, he takes time out to read Terry Pratchett novels. Robert is also one of the developers on the CruiseControl project.
Erik Meade is an employee of Wells Fargo, who attended XPImmersionTwo, interviewed at XPImmersionThree, coached at XPImmersionFour, and hung out on the evenings of XPImmersionFive. He is the edior of junit.org and an evangelist of JUnit, Ant, CruiseControl, HttpUnit, Tomcat, and open source in general. He is also a contributor to JUnitPerf.
Table of ContentsIntroduction.
Part I: Key Concepts.
Chapter 1: Introduction to Extreme Programming.
Chapter 2: J2EE Deployment Concepts.
Chapter 3: Storing and Managing Code with CVS.
Part II: Automated Building and Continuous Integration.
Chapter 4: Ant Primer.
Chapter 5: Building Java Applications with Ant.
Chapter 6: Building J2EE Applications with Ant.
Chapter 7: XDoclet Primer.
Chapter 8: Building J2EE Web Components with Ant and XDoclet.
Chapter 9: Building EJBs with Ant and XDoclet.
Chapter 10: Building Struts Apps with Ant and XDoclet.
Chapter 11: Creating Custom Ant Tasks.
Chapter 12: Creating XDoclet Custom Tags and Templates.
Part III: Automated Java Testing.
Chapter 13: Unit Testing with JUnit.
Chapter 14: Load Testing with JunitPerf.
Chapter 15: Defect Tracking with Bugzilla.
Part IV: Automated J2EE Testing.
Chapter 16: Functional Testing with HttpUnit.
Chapter 17: Performance Testing with Jmeter.
Chapter 18: Cactus Primer.
Chapter 19: Testing Servlets and Filters with Cactus.
Chapter 20: JspTestCases and Testing Custom Tags with Cactus.
Chapter 21: Testing EJBs with Cactus.
Chapter 22: Code Coverage with jcoverage.
Part V: Automated Swing Testing.
Chapter 23: Swing Testing with Jemmy.
Chapter 24: Swing Testing with jfcUnit.
Chapter 25: Swing Testing with Abbot.
Part VI: Continuous Integration, Project Management, and IDEs.
Chapter 26: Managing Projects with Maven.
Chapter 27: Automating Continuous Integration with CruiseControl.
Chapter 28: Automating Continuous Integration with AntHill.
Part VII: API Tag Reference.
Chapter 29: Ant Tag Reference.
Chapter 30: Ant API Reference.
Chapter 31: JUnit API Reference.
Chapter 32: Cactus API Reference.
Chapter 33: HttpUnit API Reference.
Chapter 34: JUnitPerf API Reference.
Part VIII: Appendix.
Appendix A: Example Applications Used in This Book.