You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
19:49:20 [main] ERROR o.s.t.c.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@15f9a2a4] to prepare test instance [com.nitinsurana.TestVideoExistsInMongo@17073812]
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.sql.DataSource] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
The text was updated successfully, but these errors were encountered:
nitinsurana
changed the title
AbstractTransactionalTest with mongodb fails with
AbstractTransactionalTest with mongodb fails with No qualifying bean error
Jun 15, 2015
Reading briefly the resthubContext.xml in mongodb, no datasource bean is defined. It is in the hikariCp or boneCp profiles. I've never used mongo so I don't really know how datasource are working with it :(
As per the documentation (http://resthub.org/docs/spring/testing/) the above code should work, but instead throws
The text was updated successfully, but these errors were encountered: