In our project we setup our integration tests by overriding the properties in the IntegrationTest
annotation as shown below:
@RunWith(SpringJunitClassRunner.class)
@IntegrationTest("server.port:0",
"health.hystrix.enabled:false"
.... other properties ....
)
@ActiveProfile("local","no-swagger")
public class IntegrationTest{
}
However in spring-boot 1.4 @IntegrationTest
annotation has been deprecated. Spring documentation suggests using @SpringBootTest
annotation instead. My question is How do I override the properties with this new annotation?
Aucun commentaire:
Enregistrer un commentaire