Comments (9)
The name
maps to configured WireMockServer instance, with an idea that each instance's base url is bound to a single property. Do you mean in your example that all of these base paths would have the same url?
from wiremock-spring-boot.
Hi @maciejwalkowiak ,
sorry for the late response!
For the sake of simplified test setup, I want one WireMock instances for all 3rd party RESTful services that my app depends on.
So that I can inject one instance
@InjectWireMock("services")
private WireMockServer servicesWireMock;
instead of
@InjectWireMock("product-aggregates-service")
private WireMockServer productAggregatesWireMock;
@InjectWireMock("businesspartners-service")
private WireMockServer businessPartnersWireMock;
@InjectWireMock("participations-service")
private WireMockServer participationsWireMock;
@InjectWireMock("usageinformations-service")
private WireMockServer usageinformationsWireMock;
I am aware, that WireMock documentation recommends to have a dedicated WireMock instance for every RESTful service, but I do not need this high level of isolation. For my requirements, it is sufficient to isolate the different RESTFul services by path only.
Being that said and in relation to your question
Do you mean in your example that all of these base paths would have the same url?
I configure one base url (not really base path) pointing to one and the same host and the application code has some code snippet for the different paths.
I think this feature request makes it more easy to support "default instance" requirement: #19
from wiremock-spring-boot.
Related Issues (9)
- Not working for Nested test classes HOT 1
- Support wiremock configuration options HOT 5
- Support for WireMock default instance HOT 9
- Injecting Wiremock does not work with JUnit @Nested HOT 1
- Spring 3.2.0 Incompatibility HOT 2
- Allow injecting port without host/protocol (e.g., for gRPC) HOT 2
- port for Slf4jNotifier bug required HOT 2
- `WireMock` naming collision HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiremock-spring-boot.