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)
本文介绍如何配置JUnit4.0与Ant1.6.5进行单元测试,包括环境变量配置、文件目录结构设置及所需依赖jar包的引入。
1万+

被折叠的 条评论
为什么被折叠?



