public final class MkQueryMatchers extends Object
MkQuery
.Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<MkQuery> |
hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of
MkQuery.body() against the given matcher. |
static org.hamcrest.Matcher<MkQuery> |
hasHeader(String header,
org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of
MkQuery#header() against the given
matcher. |
public static org.hamcrest.Matcher<MkQuery> hasBody(org.hamcrest.Matcher<String> matcher)
MkQuery.body()
against the given matcher.matcher
- The matcher to use.public static org.hamcrest.Matcher<MkQuery> hasHeader(String header, org.hamcrest.Matcher<Iterable<? extends String>> matcher)
MkQuery#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.