Prerequisite: JUNIT4.0 , Ant 1.6.5
Due to accessing DB, also need classes12.jar
Throw the junit.jar into the ant/lib, and configure the ANT_HOME in ENV, asscociate with the %ANT_HOME%\bin in PATH.
the tree of file as below list:
.
build.xml
build.properties
src(all source files)
lib( not put classes12.jar in the dir,so you need add it)
unit(java file in src reference class file from unit)