I'm trying to perform an integration test using embedded MongoDB. I used @DataMongoTest annotation for that. I can test the repository alone. But when autowire with service, test case execution throwing no bean dependency found.
Hi Nandakumar. Thanks for your question. I'm not sure what you're doing there, so can't really answer your question. Normally you can do integration tests with embedded mongo, but you might have some config problems in your code.
Thanks @Laurentiu Spilca. Correct, I faced config problem while integrating embedded MongoDB. Now I resolved that by removing @DataMongoTest annotation and by adding separate profile for test., So that embedded MongoDB will setup for test profile. Thanks for reply.