Skip to content

Commit

Permalink
Bump wiremock
Browse files Browse the repository at this point in the history
  • Loading branch information
wodrobina committed Apr 25, 2024
1 parent f3ea39a commit 30c9978
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion wiremock-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ group = 'com.epages'
description = 'Spring Boot Starter for adding a WireMock server to your integration test'

dependencies {
api 'com.github.tomakehurst:wiremock-standalone:2.27.2'
api 'org.wiremock:wiremock-standalone:3.5.3'

implementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.common.ClasspathFileSource;
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;

@AutoConfiguration
@ConditionalOnClass({WireMockServer.class})
Expand All @@ -36,7 +35,6 @@ public WireMockConfiguration wireMockConfiguration(WireMockProperties properties
if(properties.getStubPath() != null) {
config.fileSource(new ClasspathFileSource(properties.getStubPath()));
}
config.extensions(new ResponseTemplateTransformer(false));
return config;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void beforeTestMethod(TestContext testContext) {
WireMockServer server = applicationContext.getBean(WireMockServer.class);
server.resetMappings();
if(! stubPath.isEmpty()) {
server.loadMappingsUsing(new JsonFileMappingsSource(new ClasspathFileSource(stubPath)));
server.loadMappingsUsing(new JsonFileMappingsSource(new ClasspathFileSource(stubPath), null));
}
}

Expand Down

0 comments on commit 30c9978

Please sign in to comment.