I am trying to write a Springboot end point unit test using Mockito. System failed to initialize the placeholder during test execution context. Could you please help me to understand where I am going wrong?
@SpringJUnitWebConfig
@ContextConfiguration(classes=MockLocationsController.class)
@TestPropertySource(properties = {
"version.v1=v1",
})
public class MockLocationsControllerTest {
}
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'version.v1' in value "/api/${version.v1}"