{"action":"created","issue":{"url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/256","labels_url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/256/comments","events_url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/256/events","html_url":"https://github.com/resthub/resthub-spring-stack/issues/256","id":88442203,"number":256,"title":"AbstractTransactionalTest with mongodb fails with No qualifying bean error","user":{"login":"nitinsurana","id":7137160,"avatar_url":"https://avatars.githubusercontent.com/u/7137160?v=3","gravatar_id":"","url":"https://api.github.com/users/nitinsurana","html_url":"https://github.com/nitinsurana","followers_url":"https://api.github.com/users/nitinsurana/followers","following_url":"https://api.github.com/users/nitinsurana/following{/other_user}","gists_url":"https://api.github.com/users/nitinsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinsurana/subscriptions","organizations_url":"https://api.github.com/users/nitinsurana/orgs","repos_url":"https://api.github.com/users/nitinsurana/repos","events_url":"https://api.github.com/users/nitinsurana/events{/privacy}","received_events_url":"https://api.github.com/users/nitinsurana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T14:23:50Z","updated_at":"2015-06-21T09:09:15Z","closed_at":null,"body":"```\r\n@ActiveProfiles({\"resthub-mongodb\"})\r\npublic class TestVideoExistsInMongo extends AbstractTransactionalTest {\r\n\r\n    @Inject\r\n    VideoRepository videoRepository;\r\n\r\n    @Test\r\n    public void videoExists() {\r\n        String videoId = \"3u1fu6f8Hto\";\r\n        Integer size = videoRepository.findByVideoId(videoId, new PageRequest(0, 1)).size();\r\n        System.out.println(\"Found : \" + size);\r\n    }\r\n}\r\n```\r\n\r\nAs per the documentation (http://resthub.org/docs/spring/testing/) the above code should work, but instead throws \r\n\r\n```\r\n\r\n19: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]\r\norg.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: {}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/comments/113879205","html_url":"https://github.com/resthub/resthub-spring-stack/issues/256#issuecomment-113879205","issue_url":"https://api.github.com/repos/resthub/resthub-spring-stack/issues/256","id":113879205,"user":{"login":"nitinsurana","id":7137160,"avatar_url":"https://avatars.githubusercontent.com/u/7137160?v=3","gravatar_id":"","url":"https://api.github.com/users/nitinsurana","html_url":"https://github.com/nitinsurana","followers_url":"https://api.github.com/users/nitinsurana/followers","following_url":"https://api.github.com/users/nitinsurana/following{/other_user}","gists_url":"https://api.github.com/users/nitinsurana/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinsurana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinsurana/subscriptions","organizations_url":"https://api.github.com/users/nitinsurana/orgs","repos_url":"https://api.github.com/users/nitinsurana/repos","events_url":"https://api.github.com/users/nitinsurana/events{/privacy}","received_events_url":"https://api.github.com/users/nitinsurana/received_events","type":"User","site_admin":false},"created_at":"2015-06-21T09:09:15Z","updated_at":"2015-06-21T09:09:15Z","body":"I'm using mongodb, isn't that supposed to be in ```resthub-mongodb``` which I've already added to the test."}}