https://linen.dev logo
#wiremock-java
Title
# wiremock-java
e

Emmanuel Godwin

10/14/2023, 6:59 AM
Using wiremock in a Spring application I noticed that The static method
urlPathTemplate
is missing. Is this the expected behavior?
t

Tom

10/14/2023, 9:15 AM
I suggest checking your dependency graph to see if an older version of WireMock is being pulled in.
urlPathTemplate
is a new addition in 3.x and I think by default Spring still depends on 2.x.
e

Emmanuel Godwin

10/14/2023, 9:49 AM
Yes. I had excluded
wiremock-standalone-jre8
from
spring-cloud-starter-contract-stub-runner
and added the
org.wiremock:wiremock:3.2.0
dependency which worked as expected.
👍 1
So for the 2.x. version there was no support for path parameters?
t

Tom

10/14/2023, 9:55 AM
No, it was introduced in the 3.x beta series
e

Emmanuel Godwin

10/14/2023, 9:57 AM
Alright. Thanks!
3 Views