public final class HmRqTextBody extends AbstractHmTextBody<Request>
This "matcher" tests given request body, assuming that it has text content.
The class is immutable and thread-safe.
Constructor and Description |
---|
HmRqTextBody(org.hamcrest.Matcher<String> bdm)
Ctor with charset set to default one.
|
HmRqTextBody(org.hamcrest.Matcher<String> bdm,
Charset charset)
Ctor.
|
HmRqTextBody(String expected)
Ctor with equalTo matcher and default charset.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
itemBody(Request item)
Item's body.
|
describeMismatchSafely, describeTo, matchesSafely
public HmRqTextBody(String expected)
expected
- String to test againstpublic HmRqTextBody(org.hamcrest.Matcher<String> bdm)
bdm
- Text body matcherpublic InputStream itemBody(Request item) throws IOException
AbstractHmTextBody
itemBody
in class AbstractHmTextBody<Request>
item
- Item to retrieve body fromIOException
- If some problem insideCopyright © 2015–2019 Take. All rights reserved.