Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sdeleuze/webflux-kotlin-web-tests

This projects shows how to use @WebTestClient with Kotlin and a WebFlux server (annotation or functional)
https://github.com/sdeleuze/webflux-kotlin-web-tests

Last synced: 19 days ago
JSON representation

This projects shows how to use @WebTestClient with Kotlin and a WebFlux server (annotation or functional)

Awesome Lists containing this project

README

        

This projects shows how to use `@WebTestClient` with Kotlin, [JUnit 5, Mockk, SpringMockk](https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-kotlin-testing) and a WebFlux server (annotation-based or functional):
- [Integration test](https://github.com/sdeleuze/webflux-kotlin-web-tests/blob/master/src/test/kotlin/com/example/IntegrationTest.kt)
- [`@WebFluxTest` with `@RestController`](https://github.com/sdeleuze/webflux-kotlin-web-tests/blob/master/src/test/kotlin/com/example/ControllerWebFluxTest.kt)
- [`@WebFluxTest` with functional router](https://github.com/sdeleuze/webflux-kotlin-web-tests/blob/master/src/test/kotlin/com/example/RouterWebFluxTest.kt)
- [Mocked test with functional router](https://github.com/sdeleuze/webflux-kotlin-web-tests/blob/master/src/test/kotlin/com/example/RouterMockedTest.kt)