Garik Hakobyan
09/20/2023, 2:11 PMCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mockDataDirectorManagementClient' defined in com.unisoftwareplus.devicemanagementgateway.mockserver.WireMockConfig: Invocation of init method failed; nested exception is com.github.tomakehurst.wiremock.common.FatalStartupException: java.lang.RuntimeException: java.io.IOException: Failed to bind to /0.0.0.0:9561
how is it possible to set up dynamic port.
using the below dependency
testImplementation 'org.wiremock:wiremock-standalone:3.0.4'
Lee Turner
09/20/2023, 2:31 PM0
it should try a dynamic port. I think there might even be a method you can use on the Wiremock options - options().dynamicPort()
Garik Hakobyan
09/20/2023, 2:46 PMfeign.clent.url=<http://localhost:9561>
in application properties fileLee Turner
09/20/2023, 2:58 PMtestImplementation "org.wiremock:wiremock:3.1.0"
Garik Hakobyan
09/20/2023, 2:59 PMtestImplementation 'org.wiremock:wiremock-standalone:3.0.4'
testImplementation "org.wiremock:wiremock:3.1.0"
this dependency throws exception related to jakarta if remember rightOleg Nenashev
09/20/2023, 3:54 PM