我在做一个阿帕奇公理项目。我写过juint测试用例。并试图运行它。但每次他们犯了这个错误。(说对应的类没有公共构造函数TestCase )
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中的测试用例,看看是否是因为我编写的代码。同样的错误会弹出。
如果有人能帮我做这件事我会很感激的。
谢谢
发布于 2013-10-12 19:32:14
我已经回答了这个问题:http://markmail.org/message/2sxitsvqajapmhap
https://stackoverflow.com/questions/19293071
复制相似问题