Dariusz Kuc
04/28/2020, 4:43 PMWebFluxTest
? e.g. I’d like to avoid starting up the whole app using @SpringBootTest
, e.g.
@ExtendWith(SpringExtension::class)
@ContextConfiguration(classes = [MyRouteConfiguration::class])
@WebFluxTest
class RouteConfigurationIT(@Autowired val context: ApplicationContext) {
private lateinit var webClient: WebTestClient
@BeforeEach
fun setUp() {
webClient = WebTestClient.bindToApplicationContext(context).build()
}
// some tests here
}
Above works fine for testing the routes but I want to also verify that my webfilter that redirects health path to /actuator/health
actually works. With the above setup actuator is not setup so I’m getting 404. Any ideas?