| Package | Description | 
|---|---|
| com.jcabi.http.mock | 
 Mock of Servlet Container. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MkQuery | 
MkContainer.take()
Get the oldest request received
 ( 
NoSuchElementException
 if no more elements in the list). | 
MkQuery | 
MkGrizzlyContainer.take()  | 
MkQuery | 
MkContainer.take(Matcher<MkAnswer> matcher)
Get the oldest request received subject to the matching condition. 
 | 
MkQuery | 
MkGrizzlyContainer.take(Matcher<MkAnswer> matcher)  | 
| Modifier and Type | Method and Description | 
|---|---|
static Matcher<MkQuery> | 
MkQueryMatchers.hasBody(Matcher<String> matcher)
Matches the value of the MkQuery's body against the given matcher. 
 | 
static Matcher<MkQuery> | 
MkQueryMatchers.hasHeader(String header,
         Matcher<Iterable<? extends String>> matcher)
Matches the content of the MkQuery's header against the given matcher. 
 | 
static Matcher<MkQuery> | 
MkQueryMatchers.hasPath(Matcher<String> path)
Matches the path of the MkQuery. 
 | 
static Matcher<MkQuery> | 
MkQueryMatchers.hasQuery(Matcher<String> query)
Matches the query of the MkQuery. 
 | 
Collection<MkQuery> | 
MkContainer.takeAll(Matcher<MkAnswer> matcher)
Get the all requests received satisfying the given matcher. 
 | 
Collection<MkQuery> | 
MkGrizzlyContainer.takeAll(Matcher<MkAnswer> matcher)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
MkQueryUriMatcher.matchesSafely(MkQuery item,
             Description desc)  | 
| Modifier and Type | Method and Description | 
|---|---|
MkContainer | 
MkContainer.next(MkAnswer answer,
    Matcher<MkQuery> condition)
Give this answer on the next request if the matcher condition is
 satisfied. 
 | 
MkContainer | 
MkGrizzlyContainer.next(MkAnswer answer,
    Matcher<MkQuery> condition)  | 
MkContainer | 
MkContainer.next(MkAnswer answer,
    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,
    Matcher<MkQuery> condition,
    int count)  | 
Copyright © 2012–2021 jcabi.com. All rights reserved.