问题
I wanted to load all my wiremock stub files before start-up my cucumber-jvm tests.
As per wiremock docs via API only one file can be pushed. Not bulk. I was think using java code within the test project before kick-off tests.
Whats would be the best way of doing this through the code.
回答1:
By calling wiremock api you can upload multiple stubs in one go as per below solution.
Solution
Try POSTing it to http://localhost:8080/__admin/mappings/import
来源:https://stackoverflow.com/questions/61519644/load-wiremock-stub-files