Whats the best way to test OpenAPI generated code with WireMock that runs on dynamic port?
I have Spring Boot 3 application. I use openapi.json to define rest client and openapi-generator-maven-plugin to generate java code for the client. This results in ApiClient class being generated which has field private String basePath whose value is taken from openapi.json
For example:
openapi.json
{
"openapi": "3.0.1",
"info": {
"version": "v1",
"title": "Postman Echo API Client",
"x-revision": "2024-08-20"
},
"servers": [
{
"url": "https://postman-echo.com",...