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

mallappa.mantur

03/27/2024, 10:54 AM
#help I am trying upgrade the wiremock version from 2.27.2 to latest version 3.4.2 but I ma facing lot of code change . Do have any reference code to create WebhookTransformer
t

Tom

03/27/2024, 10:59 AM
Webhooks are built into 3.4.2 so you no longer have to explicitly add the extension at startup.
m

mallappa.mantur

03/27/2024, 11:13 AM
@Tom: do you any reference code or sample repo ?
Copy code
ResponseTemplateTransformer - class
earlier it was expecting 4 parameter but now its expecting 1 parameter
similarly there are many changes
Copy code
ServeEvent serveEvent
how to crete this object
t

Tom

03/27/2024, 11:20 AM
Response templating is also enabled by default locally so you can remove that part too
If you want to enable it globally you can do
wireMockConfig().globalTemplating(true)
m

mallappa.mantur

03/27/2024, 11:25 AM
@Tom can we connect if you are available for sometime
2 Views