空测试:导致错误

时间:2015-10-11 06:45:51

标签: java xml ant junit

test:
    [junit] Running ProjProgAppsTest
    [junit] Testsuite: ProjProgAppsTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit]
    [junit] Null Test:  Caused an ERROR
    [junit] ProjProgAppsTest
    [junit] java.lang.ClassNotFoundException: ProjProgAppsTest
    [junit]     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    [junit]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    [junit]     at java.lang.Class.forName0(Native Method)
    [junit]     at java.lang.Class.forName(Class.java:264)
    [junit]
    [junit]

BUILD FAILED

我从测试中得到了这个输出。是什么导致错误?怎么解决?有人能帮助我吗?

1 个答案:

答案 0 :(得分:1)

JUnit Wiki有一篇文章Getting started – Ant