Uses of Interface
com.jcabi.http.mock.MkAnswer
-
Packages that use MkAnswer Package Description com.jcabi.http.mock Mock of Servlet Container. -
-
Uses of MkAnswer in com.jcabi.http.mock
Classes in com.jcabi.http.mock that implement MkAnswer Modifier and Type Class Description static class
MkAnswer.Simple
Simple implementation.Methods in com.jcabi.http.mock that return types with arguments of type MkAnswer Modifier and Type Method Description static org.hamcrest.Matcher<MkAnswer>
MkAnswerMatchers. hasBody(org.hamcrest.Matcher<String> matcher)
Matches the value of the MkAnswer's body against the given matcher.static org.hamcrest.Matcher<MkAnswer>
MkAnswerMatchers. hasBodyBytes(org.hamcrest.Matcher<byte[]> matcher)
Matches the value of the MkAnswer's body bytes against the given matcher.static org.hamcrest.Matcher<MkAnswer>
MkAnswerMatchers. hasHeader(String header, org.hamcrest.Matcher<Iterable<? extends String>> matcher)
Matches the content of the MkAnswer's header against the given matcher.Methods in com.jcabi.http.mock with parameters of type MkAnswer Modifier and Type Method Description MkContainer
MkContainer. next(MkAnswer answer)
Give this answer on the next request.MkContainer
MkContainer. next(MkAnswer answer, org.hamcrest.Matcher<MkQuery> condition)
Give this answer on the next request if the matcher condition is satisfied.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.MkContainer
MkGrizzlyContainer. next(MkAnswer answer)
MkContainer
MkGrizzlyContainer. next(MkAnswer answer, org.hamcrest.Matcher<MkQuery> condition)
MkContainer
MkGrizzlyContainer. next(MkAnswer answer, org.hamcrest.Matcher<MkQuery> condition, int count)
Method parameters in com.jcabi.http.mock with type arguments of type MkAnswer Modifier and Type Method Description MkQuery
MkContainer. take(org.hamcrest.Matcher<MkAnswer> matcher)
Get the oldest request received subject to the matching condition.MkQuery
MkGrizzlyContainer. take(org.hamcrest.Matcher<MkAnswer> matcher)
Collection<MkQuery>
MkContainer. takeAll(org.hamcrest.Matcher<MkAnswer> matcher)
Get the all requests received satisfying the given matcher.Collection<MkQuery>
MkGrizzlyContainer. takeAll(org.hamcrest.Matcher<MkAnswer> matcher)
-