I'm using Spring Boot 2 and I'm trying to do an integration test. I configured a custom application.properties
this way:
@TestPropertySource(
locations = "classpath:###/$$$/application-integrationtest.properties"
)
@ComponentScan(basePackages = { "###.$$$" })
File is under src/test/java/###/$$$/application-integrationtest.properties
Running Junit under Eclipse works fine, but if I try gradle test
, I get:
java.io.FileNotFoundException: class path resource [###/$$$/application-integrationtest.properties] cannot be opened because it does not exist
What's the deal?
Aucun commentaire:
Enregistrer un commentaire