Could not able to config Mongodb for integration test bcs of ServerAddressMapping.serverAddress not found for flapdoodle latest version 4.6.1 #454
Replies: 4 comments 1 reply
-
@pspatel602 flapdoodle 4.x.x has a lot of changes so that it does not work with the old spring integration .. for spring 2.6.x, 2.7.x and 3.0.x i wrote a replacement: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo.spring .. but not for spring 2.5.x .. i guess that you are not about to switch to spring 2.6.x? |
Beta Was this translation helpful? Give feedback.
-
@pspatel602 i created an issue for that: #455 |
Beta Was this translation helpful? Give feedback.
-
@pspatel602 i close this discussion .. see #455 |
Beta Was this translation helpful? Give feedback.
-
Hi, I've got the same problem. I've been trying to use spring 2.5 and 2.7 but for both was the same: Imported dependencies from de.flapdoodle: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to do the embedded config to test the transactional endpoint in spring app. I'm tying to start the embedded mongodb by using the code snippet given in the How To section's Start mongos with mongod instance section, but there is no mention of which imports have used, so I've look into the example given in test/example directory which is StartConfigAndMongoDBServerTest. In this example serverAddress imported as static method from de.flapdoodle.embed.mongo.ServerAddressMapping.serverAddress; However, I could not able to import it in flapdoodle 4.6.1 plugin in spring app. Could anyone help me with this issue please?
Java 11
Spring 2.5.14
Beta Was this translation helpful? Give feedback.
All reactions