https://github.com/josdem/spring-webtestclient-workshop
This project shows how to use webclient to test REST services
https://github.com/josdem/spring-webtestclient-workshop
gradle spring-webflux webtestclient
Last synced: 7 days ago
JSON representation
This project shows how to use webclient to test REST services
- Host: GitHub
- URL: https://github.com/josdem/spring-webtestclient-workshop
- Owner: josdem
- Created: 2019-07-20T19:46:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-21T01:16:59.000Z (over 4 years ago)
- Last Synced: 2025-03-10T20:47:53.899Z (about 1 year ago)
- Topics: gradle, spring-webflux, webtestclient
- Language: Java
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Spring WebTestClient Workshop
----------------------------------------
This project shows how to test an API using [WebTestClient](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/test/web/reactive/server/WebTestClient.html) with [Junit Jupiter](https://junit.org/junit5/docs/current/user-guide/)
#### To run the project
```bash
gradle bootRun
```
#### To test the project
```bash
gradle test
```
### To run a single test
```bash
gradle test --tests TestName.methodName
```
#### Read this as reference:
* https://josdem.io/techtalk/spring/spring_boot_webclient/
* https://josdem.io/techtalk/spring/spring_webflux_web_testing/