黄瓜JVM Junit问题

时间:2014-05-06 21:45:51

标签: java cucumber cucumber-jvm cucumber-junit

我试图运行测试,但我收到了以下错误信息:

java.lang.IllegalArgumentException: interface cucumber.api.java.Before doesn't have @Indexed
at org.jvnet.hudson.annotation_indexer.Index.list(Index.java:45)
at org.jvnet.hudson.annotation_indexer.Index.list(Index.java:28)
at cucumber.runtime.java.BetterJavaBackend.loadGlue(BetterJavaBackend.java:82)
at cucumber.runtime.Runtime.<init>(Runtime.java:88)
at cucumber.runtime.Runtime.<init>(Runtime.java:66)
at cucumber.runtime.Runtime.<init>(Runtime.java:62)
at cucumber.api.junit.Cucumber.createRuntime(Cucumber.java:74)
at cucumber.api.junit.Cucumber.<init>(Cucumber.java:61)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:29)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:21)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:33)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:48)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

有人知道这意味着什么吗?我在这迷糊糊糊。主要是有关的部分     接口cucumber.api.java.Before没有@Indexed

是的,我没有使用maven,我将jar导入库中。

0 个答案:

没有答案