A WireMock testing demo built using Java 17 and gradle.
- src/main/java/com/learnwiremock/service/MoviesRestClient.java - A REST client built using Spring WebClient.
- src/test/java/com/learnwiremock/service/MoviesRestClientWireMockTest.java A wiremock based test class for a REST API.
- src/test/java/com/learnwiremock/service/MoviesRestClientTest.java A test class which runs against an example REST API. Optionally, see Running the example REST API below on how to download and run the example API.
./gradlew build jacocoTestReport
Clone or download the movies-restful-service-beyond-java8.jar
from movies-restful-service and run the jar with java -jar movies-restful-service-beyond-java8.jar