hi all,
I am shifting from using wiremock standalone to programmatically (Non-jnit usage). I couldn't find how to record-mappings using java.
My standalone command : java -jar wiremock-1.57-standalone.jar --port 9999 --proxy-all="
https://10.112.58.50" --record-mappings --https-port 9292
It worked fine but when I used the following code it is failing to record though it's running.
WireMockServer wmServer =
new WireMockServer(9999,9292);
FileSource mappings = new SingleRootFileSource("E:\\wiremock\\embedded\\mappings");
FileSource files = new SingleRootFileSource("E:\\wiremock\\embedded\\files");
wmServer.enableRecordMappings(mappings, files);
wmServer.stubFor(get(urlMatching("/*")).
Can anyone correct me ?
Thanks ,
Manohar