This project shows how to make use of Rest-Assured along with other utility tools.
The examples contain the code for :
- Sending simple request basic using Rest Assured
- Different ways of creating a POST request
- Uses of Simple and Complex POJOs for POST request.
- Response Parsing.
- Response parsing using POJOs.
- Dynamic response handling Gson.
- Dynamic response handling jackson-databind.
- Use of request specification.
- Use of Lombok to reduce boilerplate code
- Use of Awaitility for waiting and polling for a response
The main external dependencies used are :
- Rest Assured.
- Gson.
- Jackson-Databind.
- org.json.
- Lombok.
To check different examples go to src/test/java/com/prt/examples and find the different categories. The folder names are self-explanatory to find out what kind of tests are included. The tests are written as Junit tests.