Interface FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean matches​(org.apache.http.HttpEntity actualPostBody)
      Hint: you can use EntityUtils.toString(actualPostBody) to help you implement your matches method.
    • Method Detail

      • matches

        boolean matches​(org.apache.http.HttpEntity actualPostBody)
                 throws IOException
        Hint: you can use EntityUtils.toString(actualPostBody) to help you implement your matches method.
        Parameters:
        actualPostBody - The post body of the actual request that we are matching against.
        Returns:
        true if you consider the body to match
        Throws:
        IOException - Get turned into a RuntimeException to cause your test to fail.