adamyork / wiremock-velocity-transformer

extension for rendering velocity templates for stubbed responses.
MIT License
11 stars 6 forks source link

Not able to see velocity working #5

Closed alexanderm2018 closed 6 years ago

alexanderm2018 commented 6 years ago

In your example you provided the json representation of response but not mapping file. so I added my mapping file but have not observed response was using the template. Here console out put when call mapping to use your velocity. I have your jar in the same location where wiremock and started it with the command you have provided. image

alexanderm2018 commented 6 years ago

Sorry it was my bad since I have created response body with extension json not vm, after changing the extension to .vm things seems working fine.

image

adamyork commented 6 years ago

Okay glad you found the issue. I included a functional directory with examples in the root of the repository. https://github.com/adamyork/wiremock-velocity-transformer/tree/master/functional/mappings.

alexanderm2018 commented 6 years ago

yes this is where I found the clue, nice useful stuff you done.