Exercise yourself with REST Assured
Exercise | Status | Exercise | Status | Exercise | Status |
---|---|---|---|---|---|
JSON Response validation | ✅ | Hamcrest matchers | ✅ | JsonPath | ✅ |
XML Response validation | ✅ | Specification | ✅ | Custom ObjectMapper | ✅ |
Logging | ✅ | Response extraction | ✅ | Deserialization | ✅ |
Parameterization | ✅ | Serialization | ✅ | Simple Safe Methods | ✅ |
Destructive Methods | ✅ | Configuration | ✅ | URL Forwarding | ✅ |
Optimization | ✅ | Query Params | ✅ |
docker-compose up -d
or
npm i -g json-server
json-server --watch src/test/resources/serialization.json
https://www.jsonschema2pojo.org/
https://jsonpath.curiousconcept.com/
- Go to
IntelliJ IDEA > Preferences > Plugins
- Search and install plugin
Maven Archetype Catalogs
- Go to
IntelliJ IDEA > Preferences
and searchMaven
- Select
Maven Archetype Catalogs
and add this repository https://repo1.maven.org/maven2/archetype-catalog.xml - Go to
IntelliJ IDEA > New > Project...
- Select
Create from archetype > org.apache.maven.archetypes:maven-archetype-quickstart
and create a new project
Library Used:
rest-assured
- Java JDK version 8 or higher is required for using JUnit 5
- JUnit Jupiter (Aggregator) is the best dependency to add to your project in order to have access to all the JUnit 5 features