我无法从正在运行的JUnit命令行调用获取稍微复杂的内容。一开始,'hw'是一个没有指定包的类。下面的命令被成功地从DIR执行其中hw.class生活:从命令提示符运行JUnit:类路径混淆
java -cp /usr/share/java/hamcrest-core.jar:/usr/lib/eclipse/plugins/org.junit4_4.5.0.v20090824/junit.jar:./ org.junit.runner.JUnitCore hw
我现在指定HW,移动hw.java一包“P”到子目录“P”,并重新编译。我如何修改上述命令让类成功测试?我还以为
java -cp /usr/share/java/hamcrest-core.jar:/usr/lib/eclipse/plugins/org.junit4_4.5.0.v20090824/junit.jar:p org.junit.runner.JUnitCore p/hw
将从P的“superdir的工作,但它不...