Preface |
|
ix | |
|
|
1 | (10) |
|
|
1 | (1) |
|
|
2 | (2) |
|
|
4 | (7) |
|
|
11 | (17) |
|
|
11 | (3) |
|
|
14 | (3) |
|
|
17 | (5) |
|
|
22 | (2) |
|
|
24 | (2) |
|
|
26 | (2) |
|
|
28 | (31) |
|
Writing a Basic Buildfile |
|
|
29 | (2) |
|
|
31 | (1) |
|
|
32 | (2) |
|
Using Environment Variables |
|
|
34 | (2) |
|
Passing Arguments to a Buildfile |
|
|
36 | (3) |
|
Checking for the Existence of Properties |
|
|
39 | (1) |
|
|
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) |
|
|
46 | (1) |
|
|
47 | (1) |
|
|
48 | (2) |
|
|
50 | (3) |
|
|
53 | (1) |
|
|
54 | (1) |
|
Checking Out Code from CVS |
|
|
55 | (1) |
|
|
56 | (3) |
|
|
59 | (40) |
|
|
60 | (2) |
|
|
62 | (3) |
|
|
65 | (3) |
|
|
68 | (1) |
|
|
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) |
|
|
75 | (1) |
|
|
76 | (1) |
|
|
77 | (2) |
|
|
79 | (1) |
|
Running Tests Concurrently |
|
|
80 | (1) |
|
Testing Asynchronous Methods |
|
|
81 | (3) |
|
Writing a Base Class for Your Tests |
|
|
84 | (1) |
|
|
85 | (7) |
|
|
92 | (1) |
|
|
93 | (1) |
|
Repeatedly Testing the Same Method |
|
|
94 | (5) |
|
|
99 | (25) |
|
|
100 | (1) |
|
Preparing for Test-First Development |
|
|
100 | (4) |
|
Checking a Static Web Page |
|
|
104 | (2) |
|
|
106 | (1) |
|
|
107 | (1) |
|
|
108 | (3) |
|
Testing a Form Tag and Refactoring Your Tests |
|
|
111 | (2) |
|
Testing for Elements on HTML Forms |
|
|
113 | (3) |
|
|
116 | (4) |
|
Testing Through a Firewall |
|
|
120 | (1) |
|
|
120 | (2) |
|
|
122 | (2) |
|
|
124 | (21) |
|
|
125 | (5) |
|
Mock Object Self-Validation |
|
|
130 | (3) |
|
Writing Testable JDBC Code |
|
|
133 | (2) |
|
|
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) |
|
|
145 | (42) |
|
|
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) |
|
|
159 | (3) |
|
|
162 | (5) |
|
|
167 | (3) |
|
Testing Session Tracking Using HttpSession |
|
|
170 | (6) |
|
Testing Servlet Initialization Parameters |
|
|
176 | (1) |
|
|
177 | (3) |
|
|
180 | (3) |
|
Using HttpUnit to Perform Complex Assertions |
|
|
183 | (1) |
|
Testing the Output of a JSP |
|
|
183 | (2) |
|
|
185 | (1) |
|
|
185 | (2) |
|
|
187 | (14) |
|
|
188 | (1) |
|
|
189 | (3) |
|
|
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) |
|
|
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) |
|
|
232 | (2) |
|
Creating an XDoclet xdoclet.xml File |
|
|
234 | (3) |
|
Creating an XDoclet Module |
|
|
237 | (2) |
|
|
239 | (19) |
|
Managing Web Applications Deployed to Tomcat |
|
|
239 | (1) |
|
|
240 | (2) |
|
Removing a Web Application from Tomcat |
|
|
242 | (2) |
|
Checking If a Web Application Is Deployed |
|
|
244 | (1) |
|
|
245 | (7) |
|
|
252 | (1) |
|
Setting Up Ant to Use Tomcat's Manager Web Application |
|
|
253 | (1) |
|
|
254 | (1) |
|
Hot-Deploying a Web Application to JBoss |
|
|
255 | (1) |
|
Testing Against Multiple Servers |
|
|
256 | (2) |
|
|
258 | (7) |
|
|
258 | (1) |
|
Enterprise JavaBeans Testing Tools |
|
|
259 | (1) |
|
|
260 | (2) |
|
|
262 | (1) |
|
|
263 | (2) |
Index |
|
265 | |