Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ConfigureWireMock with only filesUnderDirectory still searches for mocks under classpath #49

Closed
tomasbjerre opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tomasbjerre
Copy link
Collaborator

tomasbjerre commented Oct 10, 2024

Proposal

Perhaps check if there are actually mappings in the found classpath resource. Now it finds wiremock-standalone-3.9.1\wiremock and that folder does not have any mappings and should be ignored.

Reproduction steps

This does not work for me:

@EnableWireMock(
@ConfigureWireMock(filesUnderDirectory = "mocks/myexistingmappings"))

This works for me:

@EnableWireMock(
@ConfigureWireMock(filesUnderClasspath = "whatever", filesUnderDirectory = "mocks/myexistingmappings"))

References

No response

@tomasbjerre tomasbjerre added the bug Something isn't working label Oct 10, 2024
tomasbjerre added a commit that referenced this issue Oct 10, 2024
…h-for-mappings

fix: looking for mocks under directory before classpath (refs #49)
@tomasbjerre
Copy link
Collaborator Author

Changing the order, using file system first and after that using classpath. It's a quick fix, if this feature causes problems it might be better to remove it and not try to be smart...

tomasbjerre added a commit that referenced this issue Oct 10, 2024
…asspath-search

fix: removing default resource names on classpath (refs #49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant