Test configuration
XML
@ContextConfiguration(locations = { "classpath:context/config.xml" })
@TestPropertySource({ "classpath:config/config.properties" })
public class ITSuite {
}
Configuration Classes
@ContextConfiguration(classes = { TestConfiguration.class })
@TestPropertySource({ "classpath:config/config.properties" })
public class ITSuite {
}
Spring Boot
@SpringBootTest(classes = Application.class)
@TestPropertySource({ "classpath:config/config.properties" })
public class ITSuite {
}
Last updated
Was this helpful?