Wiremock cannot find stub mapping while all configuration seems ok.

160 views
Skip to first unread message

Koen Vochten

unread,
Nov 25, 2022, 4:32:21 AM11/25/22
to wiremock-user
Hi,

I'm having troubles with wiremock. Using intellij as an idea and developing in kotlin. The problem only occurs when running tests that use wiremock individually. Using clean install which runs all the tests together, no problem occurs and everything works fine.

The problem is the following:
Wiremock finds no stub mapping, although there are mappings in the test/resources/mappings and all the configuration looks good (see attachments).
Schermafdruk van 2022-11-25 10-18-36.png
Schermafdruk van 2022-11-25 10-17-57.png
Schermafdruk van 2022-11-25 10-18-52.png

Tom Akehurst

unread,
Nov 25, 2022, 1:07:09 PM11/25/22
to wiremock-user
This can happen when IntelliJ isn't configured to copy resources to the output directories.

You can fix this via this part of the preferences:
Screenshot 2022-11-25 at 18.06.32.png
Reply all
Reply to author
Forward
0 new messages