Code Monkey home page Code Monkey logo

Comments (9)

maciejwalkowiak avatar maciejwalkowiak commented on May 26, 2024

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.

rfelgent avatar rfelgent commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.