Hey people, does anyone has successfully written s...
# spring
s
Hey people, does anyone has successfully written spring boot test for a reactive application with mockAuthentication in Kotlin? for example convert this Java code into Kotlin
Copy code
this.webTestClient.mutateWith(csrf())
            .mutateWith(mockAuthentication(TestUtil.authenticationToken(idToken)))
            .post().uri("/api/logout").exchange()
            .expectStatus().isOk()
            .expectHeader().contentType(MediaType.APPLICATION_JSON_VALUE)