@ExtendWith(SpringExtension.class)
@WebMvcTest(MyClass.class)
@TestPropertySource(locations="classpath:application-test.yml")
//Something like this?
@ExtendWith(SpringExtension.class)
@WebMvcTest(MyClass.class)
@TestPropertySource(locations="classpath:application-test.yml")
//Something like this?
This should still able to find the properties in the test file in your application:
@Autowired
private Environment env;
// Load data
String data = env.getProperty("some.property")