Class StubClient.StubbedResponseBuilder

  • Enclosing class:
    StubClient

    public class StubClient.StubbedResponseBuilder
    extends Object
    Immutable response builder.
    • Method Detail

      • to

        public void to​(String uri)
        Map the previously configured response or response source to a URI. This means any invocation of that URI, no matter which request method is used, will lead to a match.
      • to

        public void to​(org.hamcrest.Matcher<com.spotify.apollo.Request> requestMatcher)
        Map the previously configured response or response source to any messages matching the supplied Matcher. This gives full freedom to do things like inspect payloads, headers, etc., to match requests.