This project demonstrates modern API testing techniques using REST Assured, JSON Schema Validation, and Java Faker.
- Contract testing with JSON Schema
- Dynamic test data using Java Faker
- Mock/stub-compatible structure
- Clean and scalable JUnit 5 test format
- Java 22
- REST Assured 5.4.0
- JSON Schema Validator
- JUnit 5
- Java Faker
- Clone this repo
- Replace your GoREST token in the test file
- Go to https://gorest.co.in/my-account/access-tokens
- Generate a new token.
- Copy it and paste it in the test file where the token variable is set.
- Run the test via IntelliJ or Maven:
git clone https://github.com/im-ahmed-hasan/restassured-contract-testing
cd restassured-contract-testing