https://github.com/josdem/juice-automation
API validation using juice-webclient and Junit5
https://github.com/josdem/juice-automation
java jsonnode junit5 webclient webflux
Last synced: 10 months ago
JSON representation
API validation using juice-webclient and Junit5
- Host: GitHub
- URL: https://github.com/josdem/juice-automation
- Owner: josdem
- Created: 2022-05-05T17:46:13.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T00:51:02.000Z (almost 3 years ago)
- Last Synced: 2025-03-10T20:47:59.645Z (about 1 year ago)
- Topics: java, jsonnode, junit5, webclient, webflux
- Language: Java
- Homepage:
- Size: 99.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Juice Automation
----------------------------------------
[](https://app.travis-ci.com/josdem/juice-automation)
[](https://sonar.josdem.io/dashboard?id=com.josdem.jugoterapia.webclient.automation%3Ajuice-automation)
This project shows how to test an API using [Junit Jupiter](https://junit.org/junit5/docs/current/user-guide/) and a third-party library [juice-webclient](https://github.com/josdem/juice-webclient)
#### To test the project with Gradle
```bash
gradle test
```
### To run a single test with Gradle
```bash
gradle test --tests ${testName}
```
where:
- `${testName}` is the test name you want to execute
#### To test the project with Maven
```bash
mvn test
```
### To run a single test with Maven
```bash
mvn test -Dtest ${testName}
```
### To download third-party library from artifactory
```bash
export ARTIFACTORY_USER=${username}
export ARTIFACTORY_PASSWORD=${password}
```
If you are using Windows based platform:
```bash
$Env:ARTIFACTORY_USER="${username}"
$Env:ARTIFACTORY_PASSWORD="${password}"
```
where:
- `${username}` Is artifactory username
- `${password}` Is artifactory password
**Note:** If you want to have the Jfrog username and password, feel free to drop me a message on my home page website and ask for Jfrog credentials.
#### To run tests with Jacoco and Sonarqube
```bash
gradle jacocoTestReport sonarqube test
```
**Note:** This project requires [juice-webclient](https://github.com/josdem/juice-webclient) as a dependency
#### For more information:
Visit our wiki page: [Wiki page](https://github.com/josdem/juice-automation/wiki)
#### Read this as reference:
* https://josdem.io/techtalk/spring/spring_boot_webclient/
* https://josdem.io/techtalk/spring/spring_webflux_client/
* https://josdem.io/techtalk/spring/spring_webflux_basics/
* https://josdem.io/techtalk/spring/spring_webflux_artifactory_library/