Package | Description |
---|---|
com.jcabi.http.mock |
Mock of Servlet Container.
|
Modifier and Type | Class and Description |
---|---|
static class |
MkAnswer.Simple
Simple implementation.
|
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<MkAnswer> |
MkAnswerMatchers.hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of
body() against the given matcher. |
static org.hamcrest.Matcher<MkAnswer> |
MkAnswerMatchers.hasHeader(String header,
org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of
MkAnswer#header() against the given
matcher. |
Modifier and Type | Method and Description |
---|---|
MkContainer |
MkGrizzlyContainer.next(MkAnswer answer) |
MkContainer |
MkContainer.next(MkAnswer answer)
Give this answer on the next request.
|
MkContainer |
MkGrizzlyContainer.next(MkAnswer answer,
org.hamcrest.Matcher<MkQuery> condition) |
MkContainer |
MkContainer.next(MkAnswer answer,
org.hamcrest.Matcher<MkQuery> condition)
Give this answer on the next request if the matcher condition is
satisfied.
|
MkContainer |
MkGrizzlyContainer.next(MkAnswer answer,
org.hamcrest.Matcher<MkQuery> condition,
int count) |
MkContainer |
MkContainer.next(MkAnswer answer,
org.hamcrest.Matcher<MkQuery> condition,
int count)
Give this answer on the next request(s) if the matcher condition is
satisfied up to a certain number of requests.
|
Modifier and Type | Method and Description |
---|---|
MkQuery |
MkGrizzlyContainer.take(org.hamcrest.Matcher<MkAnswer> matcher) |
MkQuery |
MkContainer.take(org.hamcrest.Matcher<MkAnswer> matcher)
Get the oldest request received subject to the matching condition.
|
Collection<MkQuery> |
MkGrizzlyContainer.takeAll(org.hamcrest.Matcher<MkAnswer> matcher) |
Collection<MkQuery> |
MkContainer.takeAll(org.hamcrest.Matcher<MkAnswer> matcher)
Get the all requests received satisfying the given matcher.
|
Copyright © 2012–2014 jcabi.com. All rights reserved.