Skip to content

Commit

Permalink
Merge pull request #53 from wiremock/feature/issue-49-remove-smart-cl…
Browse files Browse the repository at this point in the history
…asspath-search

fix: removing default resource names on classpath (refs #49)
  • Loading branch information
tomasbjerre authored Oct 10, 2024
2 parents d8a6206 + e4151ba commit 2115802
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/wiremock/spring/ConfigureWireMock.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* #filesUnderClasspath()}/{@link #name()} enabling different mappings for differently named
* WireMocks.
*/
String[] filesUnderClasspath() default {"wiremock", "stubs", "mappings"};
String[] filesUnderClasspath() default {};

/**
* Directory paths to pass to {@link WireMockConfiguration#usingFilesUnderDirectory(String)}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
import org.wiremock.spring.InjectWireMock;

@SpringBootTest
@EnableWireMock({@ConfigureWireMock(name = "user-client", baseUrlProperties = "user-client.url")})
@EnableWireMock({
@ConfigureWireMock(
name = "user-client",
filesUnderClasspath = {"wiremock"},
baseUrlProperties = "user-client.url")
})
class SingleWireMockTest {

@Autowired private UserClient userClient;
Expand Down

0 comments on commit 2115802

Please sign in to comment.