0

I'm trying to create a Integration test of a Spring Boot controller running against a MongoDB embedded database with Spring 3.x but I have been unable to configure it correctly. As I have read if I'm using @SpringBootTest and @AutoConfigureDataMongo it will try to connect with a real database instead of searching for the embbeded one.

I have seen this responses:

  1. Manually Start MongoDD 1
  2. Manually Start MongoDD 2

in stackoverflow to manually start the embedded database.

But I cannot use this code with de.flapdoodle.embed.mongo version 4.9.2 since the code has changes and those classes are not longer available.

Anyone can help me to manually start the database in this case?

0 Answers0