Julien
09/11/2023, 4:47 PMResponseDefinitionBuilder.like(serveEvent.getResponseDefinition())
.withBody(mapper.writeValueAsBytes(customResponseObject))
.build()
I'm trying to include data generated via a Helper class. I've been testing my code with Wiremock's trim
{{trim request.headers.User-Agent}}
If that string is included in the template file, it is processed and replaced.
If that string is included in in object included via withBody, it is no processed.
Are helpers disabled when a ResponseDefinitionTransformerV2 is used ? Should I avoid using them both at the same time ? Is there anyway to debug that situation (some log level, Wiremock class looping through all extensions, for example) ?
Feel free to ask for any precision, and thank you for any answer you can provide.