public static interface FakeHttpLayer.RequestMatcherBuilder.PostBodyMatcher
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.
|
boolean matches(org.apache.http.HttpEntity actualPostBody) throws IOException
actualPostBody
- The post body of the actual request that we are matching against.IOException
- Get turned into a RuntimeException to cause your test to fail.