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

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

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/