2013-10-10 53 views
0

我正在开发Apache Axiom项目。我写了juint测试用例。并试图运行它。 但每次他们给这个错误。 (说相应的类没有公共构造的TestCase)Axiom测试用例不运行

junit.framework.AssertionFailedError: Class org.apache.axiom.ts.om.builder.TestGetDocumentElementWithIllFormedDocument has no public constructor TestCase(String name) or TestCase() 
    at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) 
    at org.junit.runner.JUnitCore.run(JUnitCore.java:157) 
    at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:77) 
    at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195) 
    at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) 

     Process finished with exit code 255 

然后我试图运行已经在axoim,看它是否是因为我写的代码某几个测试用例。 同样的错误弹出。

如果有人能帮助我,我将不胜感激。

感谢

回答