Java Extreme Programming Cookbook

by
Format: Paperback
Pub. Date: 2003-03-01
Publisher(s): Oreilly & Associates Inc
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $34.95

Buy New

Usually Ships in 2-3 Business Days
$34.60

Rent Book

Select for Price
There was a problem. Please try again later.

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Extreme Programming (XP) may be considered a "lightweight methodology", but most books that discuss XP are surprisingly dense, overwhelming Java developers with philosophy and theory and offering very little in the way of actual "here's how you do it" examples. O'Reilly's Java Extreme Programming Cookbook assumes the developer already believes in XP, wants just enough theory for the examples to make sense, and is ready to get down to practice. The book succinctly documents the most important features of popular open source tools for XP in Java-including Ant, Junit, HttpUnit, Cactus, JMeter, Tomcat, Xdoclet-and then digs right in, providing over 100 recipes for implementing the tools in real-world environments. Each recipe offers code solutions that developers can insert directly into applications, with explanations of how and why the code works, so they can learn to adapt the techniques to similar situations.

Table of Contents

Preface ix
XP Tools
1(10)
Java and XP
1(1)
Tools and Philosophies
2(2)
Open Source Toolkit
4(7)
XP Overview
11(17)
What Is XP?
11(3)
Coding
14(3)
Unit Testing
17(5)
Refactoring
22(2)
Design
24(2)
Builds
26(2)
Ant
28(31)
Writing a Basic Buildfile
29(2)
Running Ant
31(1)
Providing Help
32(2)
Using Environment Variables
34(2)
Passing Arguments to a Buildfile
36(3)
Checking for the Existence of Properties
39(1)
Defining a Classpath
40(2)
Defining Platform-Independent Paths
42(1)
Including and Excluding Files
43(1)
Implementing Conditional Logic
44(1)
Defining a Consistent Environment
45(1)
Preventing Build Breaks
46(1)
Building JAR Files
47(1)
Installing JUnit
48(2)
Running Unit Tests
50(3)
Running Specific Tests
53(1)
Generating a Test Report
54(1)
Checking Out Code from CVS
55(1)
Bootstrapping a Build
56(3)
JUnit
59(40)
Getting Started
60(2)
Running JUnit
62(3)
assertXXX() Methods
65(3)
Unit Test Granularity
68(1)
Set Up and Tear Down
69(2)
One-Time Set Up and Tear Down
71(2)
Organizing Tests into Test Suites
73(1)
Running a Test Class Directly
74(1)
Repeating Tests
75(1)
Test Naming Conventions
76(1)
Unit Test Organization
77(2)
Exception Handling
79(1)
Running Tests Concurrently
80(1)
Testing Asynchronous Methods
81(3)
Writing a Base Class for Your Tests
84(1)
Testing Swing Code
85(7)
Testing with the Robot
92(1)
Testing Database Logic
93(1)
Repeatedly Testing the Same Method
94(5)
HttpUnit
99(25)
Installing HttpUnit
100(1)
Preparing for Test-First Development
100(4)
Checking a Static Web Page
104(2)
Following Hyperlinks
106(1)
Writing Testable HTML
107(1)
Testing HTML Tables
108(3)
Testing a Form Tag and Refactoring Your Tests
111(2)
Testing for Elements on HTML Forms
113(3)
Submitting Form Data
116(4)
Testing Through a Firewall
120(1)
Testing Cookies
120(2)
Testing Secure Pages
122(2)
Mock Objects
124(21)
Event Listener Testing
125(5)
Mock Object Self-Validation
130(3)
Writing Testable JDBC Code
133(2)
Testing JDBC Code
135(3)
Generating Mock Objects with MockMaker
138(2)
Breaking Up Methods to Avoid Mock Objects
140(2)
Testing Server-Side Business Logic
142(3)
Cactus
145(42)
Configuring Cactus
148(1)
Setting Up a Stable Build Environment
149(6)
Creating the cactus.properties File
155(2)
Generating the cactus.properties File Automatically
157(2)
Writing a Cactus Test
159(3)
Submitting Form Data
162(5)
Testing Cookies
167(3)
Testing Session Tracking Using HttpSession
170(6)
Testing Servlet Initialization Parameters
176(1)
Testing Servlet Filters
177(3)
Securing Cactus Tests
180(3)
Using HttpUnit to Perform Complex Assertions
183(1)
Testing the Output of a JSP
183(2)
When Not to Use Cactus
185(1)
Designing Testable JSPs
185(2)
JUnitPerf
187(14)
When to Use JUnitPerf
188(1)
Creating a Timed Test
189(3)
Creating a LoadTest
192(2)
Creating a Timed Test for Varying Loads
194(1)
Testing Individual Response Times Under Load
195(2)
Running a TestSuite with Ant
197(1)
Generating JUnitPerf Tests
198(3)
XDoclet
201(38)
Setting Up a Development Environment for Generated Files
202(2)
Setting Up Ant to Run XDoclet
204(3)
Regenerating Files That Have Changed
207(1)
Generating the EJB Deployment Descriptor
208(4)
Specifying Different EJB Specifications
212(1)
Generating EJB Home and Remote Interfaces
212(5)
Creating and Executing a Custom Template
217(3)
Extending XDoclet to Generate Custom Files
220(2)
Creating an Ant XDoclet Task
222(4)
Creating an XDoclet Tag Handler
226(6)
Creating a Template File
232(2)
Creating an XDoclet xdoclet.xml File
234(3)
Creating an XDoclet Module
237(2)
Tomcat and JBoss
239(19)
Managing Web Applications Deployed to Tomcat
239(1)
Hot Deploying to Tomcat
240(2)
Removing a Web Application from Tomcat
242(2)
Checking If a Web Application Is Deployed
244(1)
Starting Tomcat with Ant
245(7)
Stopping Tomcat with Ant
252(1)
Setting Up Ant to Use Tomcat's Manager Web Application
253(1)
Hot-Deploying to JBoss
254(1)
Hot-Deploying a Web Application to JBoss
255(1)
Testing Against Multiple Servers
256(2)
Additional Topics
258(7)
Testing XML Files
258(1)
Enterprise JavaBeans Testing Tools
259(1)
Avoiding EJB Testing
260(2)
Testing Swing GUIs
262(1)
Testing Private Methods
263(2)
Index 265

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.