Hi all,
I'm unit testing my Quarkus application that is a service layer that integrates mongoDb for CRUD operations and text-based search operations.
What I'm trying to achieve is a real unit testing so I have mocked my service layer and my panache repository (I have used the repository pattern) classes.
The unit tests I wrote work fine, but when I launch them I see in the console log the mongodb client that want to connect to a mongodDB instance (I mean during the Quarkus application bootstrap).
I tryed to remove from my test configuration profile the following two properties:
- quarkus.mongodb.connection-string
- quarkus.mongodb.database
but Quarkus complains about that because it expects that properties have values.
There's a way to tell Quarkus "dont try to connect to mongodb instance at bootstrap" for a specific configuration profile?
Thank you.