public final class MkAnswerMatchers extends Object
MkAnswer
.Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<MkAnswer> |
hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of
MkAnswer.body() against the given matcher. |
static org.hamcrest.Matcher<MkAnswer> |
hasHeader(String header,
org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of
MkAnswer#header() against the given
matcher. |
public static org.hamcrest.Matcher<MkAnswer> hasBody(org.hamcrest.Matcher<String> matcher)
MkAnswer.body()
against the given matcher.matcher
- The matcher to use.public static org.hamcrest.Matcher<MkAnswer> hasHeader(String header, org.hamcrest.Matcher<Iterable<? extends String>> matcher)
MkAnswer#header()
against the given
matcher. Note that for a valid match to occur, the header entry must
exist and its value(s) must match the given matcher.header
- The header to check.matcher
- The matcher to use.Copyright © 2012–2015 jcabi.com. All rights reserved.