79397331

Date: 2025-01-29 15:57:43
Score: 3
Natty:
Report link

in your @SpringBootTest Annotation you can pass properties to override the actual ones like the following

@SpringBootTest(properties = {"spring.data.mongodb.username=","spring.data.mongodb.password="})

You can review this article for more infos/options https://www.baeldung.com/spring-tests-override-properties

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @SpringBootTest
  • Low reputation (1):
Posted by: Hamza Naceur