Relative Content

Tag Archive for javasqlspringunit-testingspring-boot-test

Skipping Database Configuration in @SpringBootTest

I’m using @SpringBootTest for integration testing in Spring Boot, and I want to mock database calls without connecting to the real database. However, I want to skip scanning the database configuration file to ensure the tests don’t attempt real database connections. How to achieve this?