Skip to content
Fernando Benjamin edited this page Oct 29, 2018 · 1 revision

Setting system properties in tests (Spring)

@RunWith(SpringRunner::class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles(EnvironmentProfile.LOCAL)
@TestPropertySource(properties = ["management.port=9994"])
class PreconditionRestControllerIT {

}

Clone this wiki locally