... down the tests.
8. 3.4 See Also
Recipe 8. 4 shows how to create a JUnitPerf LoadTest. Recipe 8. 7 shows how to use Ant to execute
JUnitPerf tests.
8. 4 Creating a LoadTest
8. 4.1 Problem
You ...
}
8. 6.4 See Also
Recipe 8. 3 shows how to create a JUnitPerf TimedTest. Recipe 8. 4 shows how to create a
JUnitPerf
LoadTest. Recipe 8. 7 shows how to use Ant to execute JUnitPerf...
... DEFAULT_TEMPLATE =
7. "/com/oreilly/javaxp/xdoclet/perf/junitperf.j";
8. private static final String DEFAULT_JUNIT_PERF_PATTERN
=
"TestPerf{0} .java& quot;;
It is a good idea to set ... com.oreilly.javaxp.xdoclet.perf.JUnitPerfDocletSubTask
com.oreilly.javaxp.xdoclet.perf.JUnitPerfTagHandler
>
<taghandler
namespace="Perf"
class="com.oreil...
...
import java. io.File;
import java. io.IOException;
import java. io.PrintWriter;
import java. net.HttpURLConnection;
import java. net.MalformedURLException;
import java. net.URL;
public class ... breathing
personality and life into potentially dry subjects.
The animal on the cover of Java Extreme Programming Cookbook is a bison. American Bison (Bison
bison) are the la...
...
Java Extreme Programming Cookbook
By Eric M. Burke
, Brian M. Coyner
Publishe
r
: O'Reilly
Pub Date: March 2003
ISBN: 0-596-00 387 -0
Pages: 288
Brimming with ... Gravenstein Highway North
Sebastopol, CA 95472
(80 0) 9 98- 99 38 (in the United States or Canada)
(707) 82 9-0515 (international/local)
(707) 82 9-0104 (fax)
There is a web page for...
... Matches Does not match
* .java Person .java Person.class
Person* .java Person .java, PersonA .java, PersonBoss .java P .java, BossPerson .java
Test? .java TestA .java Test .java, TestOne .java
**/*.txt a.txt, ... user.home = C:\Documents and Settings\ericb
[java] Now in ShowProps class
[java] prop1 = First Prop
[java] prop2 = null
[java] prop3 = null
[java] user.home = C...
... SwingTestCase.
Example 4-13. SwingTestCase .java
package com.oreilly.javaxp.junit;
import junit.framework.TestCase;
import javax.swing.*;
import java. lang.reflect.InvocationTargetException; ... testing them.
4. 18 Avoiding Swing Threading Problems
4. 18. 1 Problem
You want to test Swing functions that dispatch to the AWT event queue, such as focus traversal.
4. 18. 2 Solutio...
... Example 7 -8
and Example 7-9 show these objects.
Example 7 -8. Shopping cart class
package com.oreilly.javaxp.cactus.servlet;
import java. io.Serializable;
import java. util.Map;
import java. util.HashMap; ... performance test passes.
8. 2.4 See Also
Recipe 8. 3 shows how to create a JUnitPerf TimedTest. Recipe 8. 7 shows how to use Ant to
execute JUnitPerf tests.
8. 3 Crea...