Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days ago
JSON representation
This projects shows how to use @WebTestClient with Kotlin and a WebFlux server (annotation or functional)
- Host: GitHub
- URL: https://github.com/sdeleuze/webflux-kotlin-web-tests
- Owner: sdeleuze
- Created: 2018-04-16T08:36:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-21T08:43:45.000Z (over 5 years ago)
- Last Synced: 2024-10-11T16:11:25.203Z (27 days ago)
- Language: Kotlin
- Homepage:
- Size: 58.6 KB
- Stars: 53
- Watchers: 6
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)