Class WillReceiveHttpRequest.Builder

    • Method Detail

      • request

        @Stability(Stable)
        public WillReceiveHttpRequest.Builder request​(Object request)
        A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence Matcher HttpRequest).

        Parameters:
        request - A test equivalence matcher that will match an HTTP request (recommended: the Test Equivalence Matcher HttpRequest). This parameter is required.
        Returns:
        this
      • response

        @Stability(Stable)
        public WillReceiveHttpRequest.Builder response​(Object response)
        A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence Matcher HttpResponse).

        Parameters:
        response - A test equivalence matcher that will match an HTTP response (recommended: the Test Equivalence Matcher HttpResponse). This parameter is required.
        Returns:
        this