Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<MkQuery> |
hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of the MkQuery's body against the given matcher.
|
static org.hamcrest.Matcher<MkQuery> |
hasHeader(String header,
org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of the MkQuery's header against the given matcher.
|
static org.hamcrest.Matcher<MkQuery> |
hasPath(org.hamcrest.Matcher<String> path)
Matches the path of the MkQuery.
|
static org.hamcrest.Matcher<MkQuery> |
hasQuery(org.hamcrest.Matcher<String> query)
Matches the query of the MkQuery.
|
public static org.hamcrest.Matcher<MkQuery> hasBody(org.hamcrest.Matcher<String> matcher)
matcher
- The matcher to use.public static org.hamcrest.Matcher<MkQuery> hasHeader(String header, org.hamcrest.Matcher<Iterable<? extends String>> matcher)
header
- The header to check.matcher
- The matcher to use.public static org.hamcrest.Matcher<MkQuery> hasPath(org.hamcrest.Matcher<String> path)
path
- The path to check.Copyright © 2012–2021 jcabi.com. All rights reserved.