Skip navigation links
A B C D E G H I J M R S T V W X 

A

AbstractSequencePlanBuilder - Class in com.github.tashoyan.httpspy
Builder for SequencePlan.
AbstractSequencePlanBuilder() - Constructor for class com.github.tashoyan.httpspy.AbstractSequencePlanBuilder
 
AbstractStubPlanBuilder - Class in com.github.tashoyan.httpspy
Builder for StubPlan.
AbstractStubPlanBuilder() - Constructor for class com.github.tashoyan.httpspy.AbstractStubPlanBuilder
 
AbstractTestPlanBuilder<T extends TestPlan> - Class in com.github.tashoyan.httpspy
Common functions for all test plan builders.
AbstractTestPlanBuilder() - Constructor for class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
 
andResponse(ResponseBuilder) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
andResponse(ResponseBuilder) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies response builder to provide a response on the actual request.

B

build() - Method in class com.github.tashoyan.httpspy.AbstractSequencePlanBuilder
 
build() - Method in class com.github.tashoyan.httpspy.AbstractStubPlanBuilder
 
build() - Method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
 
build() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
build() - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
build() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Builds request expectation.
build() - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Builds response.
build() - Method in interface com.github.tashoyan.httpspy.TestPlanBuilder
Builds new test plan.

C

CamelJettyHttpRequest - Class in com.github.tashoyan.httpspy
Implementation of HttpRequest to use with CamelJettyHttpSpy.
CamelJettyHttpRequest(Exchange) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpRequest
Create new request from Exchange.
CamelJettyHttpResponse - Class in com.github.tashoyan.httpspy
Implementation of HttpResponse to use with CamelJettyHttpSpy.
CamelJettyHttpResponse(int, String, Map<String, List<String>>, long) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpResponse
Create new instance of response.
CamelJettyHttpSpy - Class in com.github.tashoyan.httpspy
Implementation of HttpSpy based on camel-jetty component.
CamelJettyHttpSpy(int, String) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates new instance of spy server running on default host CamelJettyHttpSpy.DEFAULT_HOSTNAME.
CamelJettyHttpSpy(String, int, String) - Constructor for class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates new instance of spy server.
com.github.tashoyan.httpspy - package com.github.tashoyan.httpspy
 
com.github.tashoyan.httpspy.matcher - package com.github.tashoyan.httpspy.matcher
 
compose() - Method in class com.github.tashoyan.httpspy.AbstractSequencePlanBuilder
Composes the test plan.
compose() - Method in class com.github.tashoyan.httpspy.AbstractStubPlanBuilder
Composes the test plan.
createMissingResponse(HttpRequest) - Method in class com.github.tashoyan.httpspy.SequencePlan
Creates a special response when the number of actual requests exceeds the number of request expectations.
createSpyProcessor() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Creates Camel Processor that will be used to record actual requests and send responses back.
createUnmatchedRequestResponse(HttpRequest) - Method in class com.github.tashoyan.httpspy.StubPlan
Creates a special response when a request does not match all expectations.

D

DEFAULT_HOSTNAME - Static variable in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Default host name for the spy server.
DEFAULT_REQUESTS_NUMBER - Static variable in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Default number of expected requests.
DEFAULT_SERVICE_THREADS_NUMBER - Static variable in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Default service threads number.
DefaultRequestExpectation - Class in com.github.tashoyan.httpspy
Default implementation of RequestExpectation.
DefaultRequestExpectation(Matcher<HttpRequest>) - Constructor for class com.github.tashoyan.httpspy.DefaultRequestExpectation
Constructs new instance of request expectation.
DefaultRequestExpectationBuilder - Class in com.github.tashoyan.httpspy
Default implementation of RequestExpectationBuilder.
DefaultRequestExpectationBuilder() - Constructor for class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
Creates new builder instance.
DefaultResponseBuilder - Class in com.github.tashoyan.httpspy
Default implementation of ResponseBuilder.
DefaultResponseBuilder() - Constructor for class com.github.tashoyan.httpspy.DefaultResponseBuilder
Creates new builder instance.
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestHeaderMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestMatcher
 
describeMismatchSafely(String, Description) - Method in class com.github.tashoyan.httpspy.matcher.JsonEqualMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.matcher.StrictHeadersMatcher
 
describeMismatchSafely(HttpRequest, Description) - Method in class com.github.tashoyan.httpspy.matcher.WithoutHeaderRequestMatcher
 
describeMismatchSafely(String, Description) - Method in class com.github.tashoyan.httpspy.matcher.XmlEqualMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestHeaderMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.JsonEqualMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.StrictHeadersMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.WithoutHeaderRequestMatcher
 
describeTo(Description) - Method in class com.github.tashoyan.httpspy.matcher.XmlEqualMatcher
 

E

equalTo(String) - Static method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Creates equal to value expectations.
equalToIgnoreCase(String) - Static method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Creates equal to ignoring letter case value expectations.
equalToJson(String) - Static method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Creates {equal to JSON} value expectation.
equalToXml(String) - Static method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Creates {equal to XML} value expectation.
expect(RequestExpectationBuilder) - Method in class com.github.tashoyan.httpspy.AbstractSequencePlanBuilder
Expect a request.
expect(int, RequestExpectationBuilder) - Method in class com.github.tashoyan.httpspy.AbstractSequencePlanBuilder
Expect the same request multiple times in sequence.
expect(RequestExpectationBuilder) - Method in class com.github.tashoyan.httpspy.AbstractStubPlanBuilder
 
expect(RequestExpectationBuilder) - Method in interface com.github.tashoyan.httpspy.TestPlanBuilder
Expect a request.

G

getBody() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getBody() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getBody() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets body.
getBody() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets body.
getDelayMillis() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getDelayMillis() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets delay in milliseconds before sending the response.
getHeaders() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getHeaders() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getHeaders() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets headers.
getHeaders() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets headers.
getHeaderValues(String) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getHeaderValues(String) - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets all values of specified header.
getHostname() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getHostname() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets host name.
getMatcher() - Method in interface com.github.tashoyan.httpspy.ValueExpectation
Gets a matcher that verifies attribute value.
getMethod() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getMethod() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets HTTP method.
getPath() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
getPath() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getPath() - Method in interface com.github.tashoyan.httpspy.HttpRequest
Gets HTTP path.
getPath() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets HTTP path.
getPort() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getPort() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets network port.
getRealJettyThreadsNumber() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Gets real number of threads that is necessary to be configured for Jetty server.
getRequestMatcher() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectation
 
getRequestMatcher() - Method in interface com.github.tashoyan.httpspy.RequestExpectation
Gets matcher to check an actual request against this expectation.
getResponse(HttpRequest) - Method in class com.github.tashoyan.httpspy.SequencePlan
 
getResponse(HttpRequest) - Method in class com.github.tashoyan.httpspy.StubPlan
 
getResponse(HttpRequest) - Method in interface com.github.tashoyan.httpspy.TestPlan
Gets a response for an actual request.
getResponseBuilder() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
getResponseBuilder() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Gets response builder to provide a response on the actual request.
getServiceThreadsNumber() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
getServiceThreadsNumber() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Gets number of threads that concurrently service incoming requests.
getStatusCode() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 
getStatusCode() - Method in interface com.github.tashoyan.httpspy.HttpResponse
Gets status code.

H

HttpRequest - Interface in com.github.tashoyan.httpspy
HTTP request.
HttpRequestHeaderMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify that a request has a header with a specified value.
HttpRequestHeaderMatcher(String, ValueExpectation) - Constructor for class com.github.tashoyan.httpspy.matcher.HttpRequestHeaderMatcher
Creates new matcher.
HttpRequestMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify a value of some attribute of actually received requests.
HttpRequestMatcher(Function<HttpRequest, Object>, ValueExpectation, String) - Constructor for class com.github.tashoyan.httpspy.matcher.HttpRequestMatcher
Creates new matcher.
HttpResponse - Interface in com.github.tashoyan.httpspy
HTTP response.
HttpSpy - Interface in com.github.tashoyan.httpspy
HTTP Spy - a spy for an HTTP server.

I

isMultithreaded() - Method in class com.github.tashoyan.httpspy.SequencePlan
 
isMultithreaded() - Method in class com.github.tashoyan.httpspy.StubPlan
 
isMultithreaded() - Method in interface com.github.tashoyan.httpspy.TestPlan
Checks if this test plan supports multiple service threads.

J

JsonEqualMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify that a string equals to JSON value.
JsonEqualMatcher(String) - Constructor for class com.github.tashoyan.httpspy.matcher.JsonEqualMatcher
* Creates new matcher.

M

matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestHeaderMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.matcher.HttpRequestMatcher
 
matchesSafely(String) - Method in class com.github.tashoyan.httpspy.matcher.JsonEqualMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.matcher.StrictHeadersMatcher
 
matchesSafely(HttpRequest) - Method in class com.github.tashoyan.httpspy.matcher.WithoutHeaderRequestMatcher
 
matchesSafely(String) - Method in class com.github.tashoyan.httpspy.matcher.XmlEqualMatcher
 
matching(Matcher<String>) - Static method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
Creates matches value expectation.

R

recordUnmatchedRequest(HttpRequest) - Method in class com.github.tashoyan.httpspy.StubPlan
Records a request unmatched with all expectations.
request() - Method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
 
request() - Method in interface com.github.tashoyan.httpspy.TestPlanBuilder
Returns new request expectation builder that user will populate when specifying his expectations.
RequestExpectation - Interface in com.github.tashoyan.httpspy
Request expectation.
RequestExpectationBuilder - Interface in com.github.tashoyan.httpspy
Request expectation builder.
reset() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
reset() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Reset the spy server.
response() - Method in class com.github.tashoyan.httpspy.AbstractTestPlanBuilder
 
response() - Method in interface com.github.tashoyan.httpspy.TestPlanBuilder
Returns new response builder that user will populate when describing a response on the actual request.
ResponseBuilder - Interface in com.github.tashoyan.httpspy
Response builder.

S

sendResponseInExchange(HttpResponse, Exchange) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
Send the response in Camel exchange.
SequencePlan - Class in com.github.tashoyan.httpspy
Test plan to check the sequence in which system under test executes requests.
SequencePlan(List<RequestExpectation>, List<HttpResponse>) - Constructor for class com.github.tashoyan.httpspy.SequencePlan
Creates new instance of the test plan.
setServiceThreadsNumber(int) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
setServiceThreadsNumber(int) - Method in interface com.github.tashoyan.httpspy.HttpSpy
Sets threads number to concurrently service incoming requests.
start() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
start() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Start the spy server.
stop() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
stop() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Stop the spy server.
StrictHeadersMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify that a request has only headers with specified names.
StrictHeadersMatcher(Set<String>) - Constructor for class com.github.tashoyan.httpspy.matcher.StrictHeadersMatcher
Creates new matcher.
StubPlan - Class in com.github.tashoyan.httpspy
Test plan that allows to provide responses based on features of of requests.
StubPlan(Collection<RequestExpectation>, Collection<HttpResponse>) - Constructor for class com.github.tashoyan.httpspy.StubPlan
Creates new test plan with request expectations and responses for them.

T

testPlan(TestPlanBuilder) - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
testPlan(TestPlanBuilder) - Method in interface com.github.tashoyan.httpspy.HttpSpy
Specify test plan.
TestPlan - Interface in com.github.tashoyan.httpspy
Test plan for HTTP Spy.
TestPlanBuilder - Interface in com.github.tashoyan.httpspy
Builder for test plans.
toString() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpRequest
 
toString() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpResponse
 

V

ValueExpectation - Interface in com.github.tashoyan.httpspy
Expectation for a value of some string attribute.
verify() - Method in class com.github.tashoyan.httpspy.CamelJettyHttpSpy
 
verify() - Method in interface com.github.tashoyan.httpspy.HttpSpy
Verify that expectations are met.
verify() - Method in class com.github.tashoyan.httpspy.SequencePlan
 
verify() - Method in class com.github.tashoyan.httpspy.StubPlan
 
verify() - Method in interface com.github.tashoyan.httpspy.TestPlan
Verifies actual requests against request expectations.

W

withBody(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withBody(String) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withBody(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request body.
withBody(String) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response body.
withDelay(TimeUnit, long) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withDelay(TimeUnit, long) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response delay.
withHeader(String) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, int, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withHeader(String, String) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withHeader(String) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header without any expectations on its value.
withHeader(String, ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header with its value, but without position in the list of header values.
withHeader(String, int, ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request header with its value and position in the list of header values.
withHeader(String, String) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response header.
withMethod(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withMethod(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request method.
withoutHeader(String) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withoutHeader(String) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies that request is not expected to have this header.
WithoutHeaderRequestMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify that a request does have the specified header.
WithoutHeaderRequestMatcher(String) - Constructor for class com.github.tashoyan.httpspy.matcher.WithoutHeaderRequestMatcher
Creates new matcher.
withPath(ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withPath(ValueExpectation) - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
Specifies expected request path.
withRequestAttribute(Function<HttpRequest, Object>, String, ValueExpectation) - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
Sets expectation on the value of a request attribute.
withStatus(int) - Method in class com.github.tashoyan.httpspy.DefaultResponseBuilder
 
withStatus(int) - Method in interface com.github.tashoyan.httpspy.ResponseBuilder
Specifies response status code.
withStrictHeaders() - Method in class com.github.tashoyan.httpspy.DefaultRequestExpectationBuilder
 
withStrictHeaders() - Method in interface com.github.tashoyan.httpspy.RequestExpectationBuilder
If the property strict headers is enabled, this expectation allows only headers specified explicitly by RequestExpectationBuilder.withHeader(java.lang.String) method.

X

XmlEqualMatcher - Class in com.github.tashoyan.httpspy.matcher
Matcher to verify that a string equals to XML value.
XmlEqualMatcher(String) - Constructor for class com.github.tashoyan.httpspy.matcher.XmlEqualMatcher
* Creates new matcher.
A B C D E G H I J M R S T V W X 
Skip navigation links

Copyright © 2016. All rights reserved.