| Package | Description |
|---|---|
| com.github.tashoyan.httpspy | |
| com.github.tashoyan.httpspy.matcher |
| Modifier and Type | Class and Description |
|---|---|
class |
CamelJettyHttpRequest
Implementation of
HttpRequest to use with CamelJettyHttpSpy. |
| Modifier and Type | Method and Description |
|---|---|
org.hamcrest.Matcher<HttpRequest> |
DefaultRequestExpectation.getRequestMatcher() |
org.hamcrest.Matcher<HttpRequest> |
RequestExpectation.getRequestMatcher()
Gets matcher to check an actual request against this expectation.
|
| Modifier and Type | Method and Description |
|---|---|
protected HttpResponse |
SequencePlan.createMissingResponse(HttpRequest actualRequest)
Creates a special response when the number of actual requests exceeds the
number of request expectations.
|
protected HttpResponse |
StubPlan.createUnmatchedRequestResponse(HttpRequest actualRequest)
Creates a special response when a request does not match all
expectations.
|
HttpResponse |
TestPlan.getResponse(HttpRequest actualRequest)
Gets a response for an actual request.
|
HttpResponse |
SequencePlan.getResponse(HttpRequest actualRequest) |
HttpResponse |
StubPlan.getResponse(HttpRequest actualRequest) |
protected void |
StubPlan.recordUnmatchedRequest(HttpRequest actualRequest)
Records a request unmatched with all expectations.
|
| Modifier and Type | Method and Description |
|---|---|
protected RequestExpectationBuilder |
DefaultRequestExpectationBuilder.withRequestAttribute(Function<HttpRequest,Object> attributeProvider,
String matcherName,
ValueExpectation valueExpectation)
Sets expectation on the value of a request attribute.
|
| Constructor and Description |
|---|
DefaultRequestExpectation(org.hamcrest.Matcher<HttpRequest> requestMatcher)
Constructs new instance of request expectation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
HttpRequestHeaderMatcher.describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
void |
StrictHeadersMatcher.describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
void |
HttpRequestMatcher.describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
void |
WithoutHeaderRequestMatcher.describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
boolean |
HttpRequestHeaderMatcher.matchesSafely(HttpRequest httpRequest) |
boolean |
StrictHeadersMatcher.matchesSafely(HttpRequest httpRequest) |
boolean |
HttpRequestMatcher.matchesSafely(HttpRequest httpRequest) |
boolean |
WithoutHeaderRequestMatcher.matchesSafely(HttpRequest httpRequest) |
| Constructor and Description |
|---|
HttpRequestMatcher(Function<HttpRequest,Object> attributeProvider,
ValueExpectation valueExpectation,
String name)
Creates new matcher.
|
Copyright © 2016. All rights reserved.