Advertisement
wagnersousa

Untitled

Feb 3rd, 2012
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.19 KB | None | 0 0
  1. ERROR [TestContextManager] Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6883fde6] to prepare test instance [intregation.br.com.grupofortes.intranet.controller.BlocoDaoTest@31923ca5]
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'intregation.br.com.grupofortes.intranet.controller.BlocoDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private intregation.base.dbunit.DbUnitManager intregation.br.com.grupofortes.intranet.controller.BlocoDaoTest.dbUnitManager; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [intregation.base.dbunit.DbUnitManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  3. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
  4. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
  5. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:374)
  6. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:127)
  7. at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:85)
  8. at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:231)
  9. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:95)
  10. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:139)
  11. at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61)
  12. at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54)
  13. at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
  14. at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
  15. at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52)
  16. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
  17. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  18. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  19. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  20. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  21. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  22. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private intregation.base.dbunit.DbUnitManager intregation.br.com.grupofortes.intranet.controller.BlocoDaoTest.dbUnitManager; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [intregation.base.dbunit.DbUnitManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  23. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
  24. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
  25. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
  26. ... 18 more
  27. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [intregation.base.dbunit.DbUnitManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  28. at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
  29. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
  30. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
  31. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
  32. ... 20 more
  33. java.lang.NoSuchMethodError: org.junit.runner.notification.RunNotifier.testAborted(Lorg/junit/runner/Description;Ljava/lang/Throwable;)V
  34. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.invokeTestMethod(SpringJUnit4ClassRunner.java:146)
  35. at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:61)
  36. at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:54)
  37. at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
  38. at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
  39. at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:52)
  40. at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
  41. at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
  42. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
  43. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  44. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  45. at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  46. 16:12:34 INFO [SessionFactoryImpl] closing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement