Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<MkAnswer> |
hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of the MkAnswer's body against the given matcher.
|
static org.hamcrest.Matcher<MkAnswer> |
hasBodyBytes(org.hamcrest.Matcher<byte[]> matcher)
Matches the value of the MkAnswer's body bytes against the given
matcher.
|
static org.hamcrest.Matcher<MkAnswer> |
hasHeader(String header,
org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of the MkAnswer's header against the given
matcher.
|
public static org.hamcrest.Matcher<MkAnswer> hasBody(org.hamcrest.Matcher<String> matcher)
matcher
- The matcher to use.public static org.hamcrest.Matcher<MkAnswer> hasBodyBytes(org.hamcrest.Matcher<byte[]> matcher)
matcher
- The matcher to usepublic static org.hamcrest.Matcher<MkAnswer> hasHeader(String header, org.hamcrest.Matcher<Iterable<? extends String>> matcher)
header
- The header to check.matcher
- The matcher to use.Copyright © 2012–2020 jcabi.com. All rights reserved.