
This example exercises PokerHand.java via JUnit tests, using Emma to report on the code-coverage. 

It assumes: 

Ant 1.6+  (see http://ant.apache.org )
and Java 1.5+ (see http://java.sun.com/j2se/1.5.0/ ) 

are installed on the machine. It also uses (provided):

Emma 2.0.5312 (see http://emma.sourceforge.net/)
JUnit 3.8.x (see http://www.junit.org)

It uses the Emma's "offline mode" to instrument the Java classes before running JUnit

0. Be sure to place ./lib/junit.jar in $ANT_HOME/lib

1. type: ant report

-- this compiles and instruments the class files, runs a Junit task, and creates the report

2. point browser to ./coverage/coverage.html
