JaVa
   

How This tutorial Is Organized

This tutorial is divided into eight parts: Part I: Key Concepts: This part begins with an overview of the Extreme Programming methodology—a short course for beginners and a review for practitioners. The overview allows you to see where the practices covered in this tutorial (automated testing and continuous integration) fit into the larger picture of XP. explains the J2EE build and deployment model, highlighting the need for an automated build tool to assist in the process. Part II: Automated Building and Continuous Integration: In this part we discuss tow powerful tools that will be used throughout many chapters of the tutorial: Ant and XDoclet. s 4 through 6 cover the core function of Ant needed to achieve continuous integration with Ant, and covers the core functions of XDoclet. The remainder of this part show you how to modify these two tools and use them together to build a variety of apps, including EJBs and Struts. Part IV of this tutorial discusses alternative solutions to Ant. Part III: Automated Java Testing: In this part we focus on JUnit, JUnitPerf, and Bugzilla—tools that enable us to automate testing. Our focus here is on Java apps; chapters later in the tutorial discuss automated testing for J2EE apps. Part IV: Automated J2EE Testing: One of the largest parts of the tutorial, it focuses on tools that enable us to automate a variety of tests for J2EE apps. We use Cactus for in-container testing of servlets and EJBs, Cactus and JspTestCases in tandem to test custom tags, JMeter to run performance testing, HttpUnit for functional testing, and code coverage with jcoverage. Part V: Automated Swing Testing: In our experience, many developers fail to adequately test their Swing components. Often it seems that developers simply aren’t aware of that there are tools available to help. We attempt to remedy that problem in this part of the tutorial by addressing three tools that take very different approaches to the task: Jemmy, jfcUnit, and Abbot. Part VI: Continuous Integration, Project Management, and IDEs: This part of the tutorial discusses tools that build on, or entirely replace, Ant. First among these tools is Maven. We also discuss CruiseControl and AntHill. Each of these tools offers a unique approach to combining continuous integration, project management, and support for IDEs. Part VII: API and Tag Reference: Here we supply additional resources that developers need to make full use of some of the tools covered in this tutorial: Ant, Cactus, HttpUnit, JUnit, and JUnitPerf. We cover these tools in standard Javadoc style and include extensive code samples illustrating their use in context.

Part VIII: Appendix: Appendix A of the tutorial provides a detailed discussion of the sample apps and the case studies that we build, test, and refactor multiple times during the course of the tutorial. Full code listings for these apps are included here.


JaVa
   
Comments