Closed MarcoKnezevichInsiel closed 3 weeks ago
@MarcoKnezevichInsiel i guess that if you remove mongodb.uri from your property file the test will use the test mongo db?
I will have a look at this.
I have done some refactory and I have assigned a profile mongodb
to MongoDbConfig
class and then I ran the test again without the mongodb
profile (so the configuration class is ignored) and now it works corrrectly.
Thanks for the tip.
Hi, I hava a spring boot 3.2.5 project with the dependencies:
My configuration class is:
and in my
application.properties
I have:I'm writing an easy test, foolowing the documentation:
and my test is:
the
MongoTemplate
instance points to real database and not to Embedded database.Where am I doing wrong?
Thanks in advance for the answare.
Have a nice day