2

我正在尝试运行测试,但我得到了以下错误跟踪:

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 导入库中。

4

0 回答 0