Hi. I am running WireMock via Testcontainers and I...
# wiremock-java
s
Hi. I am running WireMock via Testcontainers and I need to set somehow path to files. I can't find anything to set __files via testcontainers. 😕 My mapping response suppose to return "bodyFileName": "myfile.xml" . How to set it ? Thak you for any help. PS: IDEA logs error looks like .
Copy code
"{<EOL>"servlet":"com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet-fd46303",<EOL>"cause0":"java.io.FileNotFoundException: /home/wiremock/./__files/myfile.xml (No such file or directory)",<EOL>"message":"java.io.FileNotFoundException:
o
Hello. There is a
withFileFromResource()
method
s
Saw it. How to set path ? Do you know maybe ?
o
It basically takes test JAR resources which you can put in src/test/resources in the majority of Java test frameworks
✅ 1