をロードできませんでした。 TestContextBootstrapper [null]をロードできませんでした。 @ BootstrapWithの 'value'属性を指定するか、デフォルトのブートストラップクラスを使用可能にします。は、私は私のクラスをテストしようとしたTestContextBootstrapper [ヌル]
at org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapper(BootstrapUtils.java:143)
at org.springframework.test.context.TestContextManager.<init>(TestContextManager.java:105)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTestContextManager(SpringJUnit4ClassRunner.java:152)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<init>(SpringJUnit4ClassRunner.java:143)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
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:33)
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:36)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:49)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:237)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
引き起こさによって:java.lang.NoSuchMethodErrorの:org.springframework.core.annotation.AnnotatedElementUtils.findAllMergedAnnotations(Ljava /ラング//AnnotatedElementの反映; Ljava /ラング/クラス;)Ljava/UTIL /セット。 org.springframework.test.context.BootstrapUtils.resolveExplicitTestContextBootstrapperで org.springframework.test.context.BootstrapUtils.resolveTestContextBootstrapperで(BootstrapUtils.java:150) (BootstrapUtils.java:126) ... 23もっと
同じ問題に直面して、解決策はありますか? –
私には解決策がありません。 – user
この質問は既に回答済みです[http://stackoverflow.com/questions/28013452/could-not-load-testcontextbootstrapper-spring-unit-testing](http://stackoverflow.com/questions/28013452/could-not -load-testcontextbootstrapper-spring-unit-testing) – Thirumal