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