Skip to content

Commit

Permalink
Fix unit tests for WireMock 3
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Apr 30, 2024
1 parent 514b3e7 commit 9a68fef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import com.github.tomakehurst.wiremock.extension.Parameters;
import com.github.tomakehurst.wiremock.extension.ResponseTransformer;
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
import com.github.tomakehurst.wiremock.extension.responsetemplating.TemplateEngine;
import com.github.tomakehurst.wiremock.http.Request;
import com.github.tomakehurst.wiremock.http.Response;
import com.github.tomakehurst.wiremock.matching.AnythingPattern;
Expand Down Expand Up @@ -122,7 +123,8 @@ public void beforeAll(final ExtensionContext context) throws Exception {

final WireMockConfiguration wireMockConfiguration = new WireMockConfiguration().dynamicPort();
final FillerUrlReplacer fillerUrlReplacer = new FillerUrlReplacer();
wireMockConfiguration.extensions(new CollectionEndpoint(), new ResponseTemplateTransformer(false),
wireMockConfiguration.extensions(new CollectionEndpoint(),
new ResponseTemplateTransformer(TemplateEngine.defaultTemplateEngine(), false, null, null),
fillerUrlReplacer);
// See JOSM #21121 for why this is necessary
Path directory = Paths.get("test", "resources");
Expand Down

0 comments on commit 9a68fef

Please sign in to comment.