REST API Testing Framework We will be creating a simple Rest Testing Framework in Java and JUnit that could be used for any testing scenarios. Rest Testing Framework Overview The framework should be able to execute the basic REST operations (GET, POST, PUT, PATCH, DELETE) and perform the validations on the code, message, headers and body of the response. The completed code can be accessed from my GitHub account from where you can collect and make modifications based on your requirements. Design We will be having three classes for the framework (in package com.axatrikx.controller ) RestExecutor : Performs the HTTP operations using Apache Http Client RestResponse : A javabean class to hold our response values (code, message, headers, body) RestValidator : Validates the response with the expected values The package com.axatrikx.test holds the test scripts. Note: I will be using ‘ json-server ‘ to fake the REST API. Its a real handy tool to r