Skip navigation links
A B C D E G H I J K L M N O P R S T V W 

A

addExpectation(ClientDriverRequest, ClientDriverResponse) - Method in class com.github.restdriver.clientdriver.ClientDriver
Add in an expected ClientDriverRequest/ClientDriverResponse pair.
addExpectation(ClientDriverRequest, ClientDriverResponse) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
Adds an expectation on the ClientDriver to expect the given request and response.
addExpectation(ClientDriverRequest, ClientDriverResponse) - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
addExpectation(ClientDriverRequest, ClientDriverResponse) - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
after(long, TimeUnit) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
Modifies a ClientDriverRequest to specify some time to wait before responding.
anyTimes() - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Indicate that this expectation should be matched any number of times.
apply(Statement, Description) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
 

B

BodyCapture<T> - Interface in com.github.restdriver.clientdriver.capture
For capturing the body of a request.
build() - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Create SecureClientDriver with the given configuration.
ByteBodyCapture - Class in com.github.restdriver.clientdriver.capture
Implementation of BodyCapture which just keeps the body as a byte array.
ByteBodyCapture() - Constructor for class com.github.restdriver.clientdriver.capture.ByteBodyCapture
 

C

canExpire() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
capturingBodyIn(BodyCapture<?>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for adding a BodyCapture to the expectation for later assertions/debugging.
certAlias(String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Sets the certificate alias.
checkForUnexpectedRequests() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
This method will throw a ClientDriverFailedExpectationException if there have been any unexpected requests.
checkForUnexpectedRequests() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
 
checkForUnmatchedExpectations() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
This method will throw a ClientDriverFailedExpectationException if any expectations have not been met.
checkForUnmatchedExpectations() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
 
ClientDriver - Class in com.github.restdriver.clientdriver
The main class which acts as a facade for the Client Driver.
ClientDriver(ClientDriverJettyHandler) - Constructor for class com.github.restdriver.clientdriver.ClientDriver
Constructor.
ClientDriver(ClientDriverJettyHandler, int) - Constructor for class com.github.restdriver.clientdriver.ClientDriver
Constructor.
ClientDriver() - Constructor for class com.github.restdriver.clientdriver.ClientDriver
Convenience constructor for extending classes.
ClientDriverCompletedListener - Class in com.github.restdriver.clientdriver
A listener to be used when the Client Driver has completed execution.
ClientDriverCompletedListener() - Constructor for class com.github.restdriver.clientdriver.ClientDriverCompletedListener
 
ClientDriverExpectation - Class in com.github.restdriver.clientdriver
An expectation made within the client driver.
ClientDriverExpectation(ClientDriverRequestResponsePair) - Constructor for class com.github.restdriver.clientdriver.ClientDriverExpectation
Creates a new expectation instance.
ClientDriverFactory - Class in com.github.restdriver.clientdriver
Main entry point to the Rest Client Driver.
ClientDriverFactory() - Constructor for class com.github.restdriver.clientdriver.ClientDriverFactory
 
ClientDriverFailedExpectationException - Exception in com.github.restdriver.clientdriver.exception
Runtime exception which is thrown when the client driver's expectations fail.
ClientDriverFailedExpectationException(List<HttpRealRequest>, List<ClientDriverExpectation>) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException
 
ClientDriverFailedExpectationException(List<ClientDriverExpectation>) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverFailedExpectationException
 
ClientDriverInternalException - Exception in com.github.restdriver.clientdriver.exception
Runtime exception thrown when the client driver cannot start for whatever reason.
ClientDriverInternalException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverInternalException
Constructor.
ClientDriverInvalidExpectationException - Exception in com.github.restdriver.clientdriver.exception
Exception which is thrown when an expectation is invalid.
ClientDriverInvalidExpectationException(String) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverInvalidExpectationException
Creates a new instance of the exception.
ClientDriverJettyHandler - Interface in com.github.restdriver.clientdriver.jetty
Interface for classes which handle incoming HTTP requests in the Client Driver.
ClientDriverListener - Interface in com.github.restdriver.clientdriver
Interface for classes which listen to the Client Driver.
ClientDriverRequest - Class in com.github.restdriver.clientdriver
Class for encapsulating an HTTP request.
ClientDriverRequest(Matcher<? extends String>) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
Constructor taking String matcher.
ClientDriverRequest(String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
Constructor taking String.
ClientDriverRequest(Pattern) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequest
Constructor taking Pattern.
ClientDriverRequest.Method - Class in com.github.restdriver.clientdriver
Class that represents an HTTP method.
ClientDriverRequestResponsePair - Class in com.github.restdriver.clientdriver
Pairs an expected request with its response.
ClientDriverRequestResponsePair(ClientDriverRequest, ClientDriverResponse) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRequestResponsePair
Constructor.
ClientDriverResponse - Class in com.github.restdriver.clientdriver
Class for encapsulating an HTTP response.
ClientDriverResponse() - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
Creates a new response with an empty body, a status code of 204 and no Content-Type.
ClientDriverResponse(String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
ClientDriverResponse(String, String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
Creates a new response with the given body, a suitable default status code and a given content-type.
ClientDriverResponse(InputStream, String) - Constructor for class com.github.restdriver.clientdriver.ClientDriverResponse
Creates a new response with the given body, a suitable default status code and a given content-type.
ClientDriverResponseCreationException - Exception in com.github.restdriver.clientdriver.exception
Runtime exception thrown when the client driver response cannot be created
ClientDriverResponseCreationException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverResponseCreationException
Constructor.
ClientDriverRule - Class in com.github.restdriver.clientdriver
The ClientDriverRule allows a user to specify expectations on the HTTP requests that are made against it.
ClientDriverRule() - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
Creates a new rule with a driver running on a free port.
ClientDriverRule(int) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
Creates a new rule with a driver running on the specified port.
ClientDriverRule(ClientDriver) - Constructor for class com.github.restdriver.clientdriver.ClientDriverRule
 
ClientDriverSetupException - Exception in com.github.restdriver.clientdriver.exception
Runtime exception which is thrown for a variety of causes from the Client Driver.
ClientDriverSetupException(String, Throwable) - Constructor for exception com.github.restdriver.clientdriver.exception.ClientDriverSetupException
Constructor.
ClientDriverUnitTest - Class in com.github.restdriver.clientdriver.example
Deprecated.
As of version 1.0.7 replaced by ClientDriverRule
ClientDriverUnitTest() - Constructor for class com.github.restdriver.clientdriver.example.ClientDriverUnitTest
Deprecated.
 
com.github.restdriver.clientdriver - package com.github.restdriver.clientdriver
 
com.github.restdriver.clientdriver.capture - package com.github.restdriver.clientdriver.capture
 
com.github.restdriver.clientdriver.example - package com.github.restdriver.clientdriver.example
 
com.github.restdriver.clientdriver.exception - package com.github.restdriver.clientdriver.exception
 
com.github.restdriver.clientdriver.jetty - package com.github.restdriver.clientdriver.jetty
 
createAndStartJetty(int) - Method in class com.github.restdriver.clientdriver.ClientDriver
 
createClientDriver() - Method in class com.github.restdriver.clientdriver.ClientDriverFactory
Factory method to create and start a ClientDriver.
createClientDriver(int) - Method in class com.github.restdriver.clientdriver.ClientDriverFactory
Factory method to create and start a ClientDriver on a specific port.
createClientDriver(KeyStore, String, String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Factory method to create and start ClientDriver.
createClientDriver(int, KeyStore, String, String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Factory method to create and start a ClientDriver on a specific port.
createConnector(Server, int) - Method in class com.github.restdriver.clientdriver.ClientDriver
 
custom(String) - Static method in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
Create a arbitrary HTTP method, for example PATCH, CONNECT, PROPFIND.

D

DefaultClientDriverJettyHandler - Class in com.github.restdriver.clientdriver.jetty
Class which acts as a Jetty Handler to see if the actual incoming HTTP request matches any expectation and to act accordingly.
DefaultClientDriverJettyHandler(RequestMatcher) - Constructor for class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
Constructor which accepts a RequestMatcher.
DefaultRequestMatcher - Class in com.github.restdriver.clientdriver
Implementation of RequestMatcher.
DefaultRequestMatcher() - Constructor for class com.github.restdriver.clientdriver.DefaultRequestMatcher
 
DELETE - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 

E

equals(Object) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
expectResponsesWithin(int, TimeUnit) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
When ClientDriver comes to check for unmatched expectations, it will retry for the specified length of time before considering the expectation unmatched.

G

GET - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
getBaseUrl() - Method in class com.github.restdriver.clientdriver.ClientDriver
Get the base URL which the ClientDriver is running on.
getBaseUrl() - Method in class com.github.restdriver.clientdriver.ClientDriverRule
The base URL of the underlying ClientDriver.
getBaseUrl() - Method in class com.github.restdriver.clientdriver.SecureClientDriver
 
getBodyCapture() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getBodyContent() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getBodyContent() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getBodyContentMatcher() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getBodyContentType() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getBodyContentType() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getBodyContentType() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getClientDriver() - Method in class com.github.restdriver.clientdriver.example.ClientDriverUnitTest
Deprecated.
Get the client driver which has been set up.
getContent() - Method in interface com.github.restdriver.clientdriver.capture.BodyCapture
 
getContent() - Method in class com.github.restdriver.clientdriver.capture.ByteBodyCapture
 
getContent() - Method in class com.github.restdriver.clientdriver.capture.JsonBodyCapture
 
getContent() - Method in class com.github.restdriver.clientdriver.capture.LatchBodyCapture
 
getContent() - Method in class com.github.restdriver.clientdriver.capture.StringBodyCapture
 
getContent() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getContentAsBytes() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getContentType() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getDelayTime() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getDelayTimeUnit() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getExcludedHeaders() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getHeaders() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getHeaders() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getHeaders() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getHeaders() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getLatch() - Method in class com.github.restdriver.clientdriver.capture.LatchBodyCapture
 
getMethod() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
getMethod() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getMethod() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getPair() - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Gets the request/response pair this expectation covers.
getParams() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getParams() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getPath() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Get the path.
getPath() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
 
getPath() - Method in interface com.github.restdriver.clientdriver.RealRequest
 
getPort() - Method in class com.github.restdriver.clientdriver.ClientDriver
 
getPort() - Method in class com.github.restdriver.clientdriver.ClientDriverRule
The port that the underlying ClientDriver is listening too.
getRequest() - Method in class com.github.restdriver.clientdriver.ClientDriverRequestResponsePair
 
getResponse() - Method in class com.github.restdriver.clientdriver.ClientDriverRequestResponsePair
 
getSslContextFactory() - Method in class com.github.restdriver.clientdriver.ClientDriver
 
getSslContextFactory() - Method in class com.github.restdriver.clientdriver.SecureClientDriver
 
getStatus() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
getStatusString() - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Gets a string giving the status of the expectation.
giveEmptyResponse() - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverResponse object with no content.
giveResponse(String) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
giveResponse(String, String) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverResponse object.
giveResponseAsBytes(InputStream, String) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverResponse object.

H

handle(String, Request, HttpServletRequest, HttpServletResponse) - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
handler - Variable in class com.github.restdriver.clientdriver.ClientDriver
 
hasBody() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
hasCompleted() - Method in class com.github.restdriver.clientdriver.ClientDriverCompletedListener
 
hasCompleted() - Method in interface com.github.restdriver.clientdriver.ClientDriverListener
Called when the Client Driver has completed, regardless of success or failure.
hashCode() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
hasNotExpired() - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
HEAD - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
HttpRealRequest - Class in com.github.restdriver.clientdriver
 
HttpRealRequest(HttpServletRequest) - Constructor for class com.github.restdriver.clientdriver.HttpRealRequest
 

I

isMatch(RealRequest, ClientDriverRequest) - Method in class com.github.restdriver.clientdriver.DefaultRequestMatcher
 
isMatch(RealRequest, ClientDriverRequest) - Method in interface com.github.restdriver.clientdriver.RequestMatcher
Checks for a match between a real RealRequest and an expected ClientDriverRequest.
isSatisfied() - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Determine whether this expectation has been satisfied.

J

jettyServer - Variable in class com.github.restdriver.clientdriver.ClientDriver
 
JsonBodyCapture - Class in com.github.restdriver.clientdriver.capture
Implementation of BodyCapture which marshalls the body into a JsonNode.
JsonBodyCapture() - Constructor for class com.github.restdriver.clientdriver.capture.JsonBodyCapture
 

K

keyStore(KeyStore) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Sets the key store.

L

LatchBodyCapture<T> - Class in com.github.restdriver.clientdriver.capture
 
LatchBodyCapture(BodyCapture<T>) - Constructor for class com.github.restdriver.clientdriver.capture.LatchBodyCapture
 
LatchBodyCapture(BodyCapture<T>, int) - Constructor for class com.github.restdriver.clientdriver.capture.LatchBodyCapture
 

M

match(HttpRealRequest) - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Indicate that this expectation has been matched.
MatchedRequestHandler - Interface in com.github.restdriver.clientdriver
 

N

noFailFastOnUnexpectedRequest() - Method in class com.github.restdriver.clientdriver.ClientDriver
Make the mock not fail fast on an unexpected request.
noFailFastOnUnexpectedRequest() - Method in class com.github.restdriver.clientdriver.ClientDriverRule
Make the mock not fail fast on an unexpected request.
noFailFastOnUnexpectedRequest() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
Should not fail fast on unexpected requests, but will fail later when running checkForUnexpectedRequests().
noFailFastOnUnexpectedRequest() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
 
NullRequestHandler - Class in com.github.restdriver.clientdriver
 
NullRequestHandler() - Constructor for class com.github.restdriver.clientdriver.NullRequestHandler
 

O

onMatch(HttpRealRequest) - Method in interface com.github.restdriver.clientdriver.MatchedRequestHandler
 
onMatch(HttpRealRequest) - Method in class com.github.restdriver.clientdriver.NullRequestHandler
 
onRequestTo(Matcher<? extends String>) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverRequest object.
onRequestTo(String) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverRequest object.
onRequestTo(Pattern) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Creates a new ClientDriverRequest object.
OPTIONS - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 

P

password(String) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Sets the password.
port(int) - Method in class com.github.restdriver.clientdriver.SecureClientDriverFactory
Sets the port.
POST - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
PUT - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 

R

RealRequest - Interface in com.github.restdriver.clientdriver
 
replaceConnector(ServerConnector, Server) - Method in class com.github.restdriver.clientdriver.ClientDriver
 
RequestMatcher - Interface in com.github.restdriver.clientdriver
Interface for classes whose responsibility is to match incoming Http requests with expected ClientDriverRequests.
reset() - Method in class com.github.restdriver.clientdriver.ClientDriver
Resets the expectations and requests in the handler.
reset() - Method in class com.github.restdriver.clientdriver.ClientDriverRule
Resets the expectations and requests in the handler.
reset() - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
Resets the expectations so the current ClientDriver instance can be reused.
reset() - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
 
RestClientDriver - Class in com.github.restdriver.clientdriver
Helper class for fluent creation of Client Driver objects.

S

SecureClientDriver - Class in com.github.restdriver.clientdriver
Secure client driver extends the ClientDriver to use secure connections via HTTPS with a provided certificate.
SecureClientDriver(ClientDriverJettyHandler, int, KeyStore, String, String) - Constructor for class com.github.restdriver.clientdriver.SecureClientDriver
Constructor which uses the given port to bind to.
SecureClientDriver(ClientDriverJettyHandler, KeyStore, String, String) - Constructor for class com.github.restdriver.clientdriver.SecureClientDriver
Constructor which uses a free port to bind to.
SecureClientDriverFactory - Class in com.github.restdriver.clientdriver
Factory to create a ClientDriver object which supports SSL.
SecureClientDriverFactory() - Constructor for class com.github.restdriver.clientdriver.SecureClientDriverFactory
 
SecureClientDriverRule - Class in com.github.restdriver.clientdriver
The SecureClientDriverRule allows a user to specify expectations on the HTTPS requests that are made against it.
SecureClientDriverRule(KeyStore, String, String) - Constructor for class com.github.restdriver.clientdriver.SecureClientDriverRule
Creates a new rule which binds the driver to a free port.
SecureClientDriverRule(int, KeyStore, String, String) - Constructor for class com.github.restdriver.clientdriver.SecureClientDriverRule
Creates a new rule which binds the driver to a free port.
setBody(byte[]) - Method in interface com.github.restdriver.clientdriver.capture.BodyCapture
 
setBody(byte[]) - Method in class com.github.restdriver.clientdriver.capture.ByteBodyCapture
 
setBody(byte[]) - Method in class com.github.restdriver.clientdriver.capture.JsonBodyCapture
 
setBody(byte[]) - Method in class com.github.restdriver.clientdriver.capture.LatchBodyCapture
 
setBody(byte[]) - Method in class com.github.restdriver.clientdriver.capture.StringBodyCapture
 
shouldMatchAnyTimes() - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Whether this expectation should match any number of times.
shutdown() - Method in class com.github.restdriver.clientdriver.ClientDriver
Shutdown the server and calls ClientDriver.verify().
shutdownClientDriver() - Method in class com.github.restdriver.clientdriver.example.ClientDriverUnitTest
Deprecated.
Shuts the client driver down, which will also verify that the expectations are correct.
shutdownQuietly() - Method in class com.github.restdriver.clientdriver.ClientDriver
Shutdown the server without verifying expectations.
startClientDriver() - Method in class com.github.restdriver.clientdriver.example.ClientDriverUnitTest
Deprecated.
Starts the client driver.
StringBodyCapture - Class in com.github.restdriver.clientdriver.capture
Implementation of BodyCapture which gives the body as a String.
StringBodyCapture() - Constructor for class com.github.restdriver.clientdriver.capture.StringBodyCapture
 

T

times(int) - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
Indicate that this expectation should be matched a given number of times.
toString() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 
toString() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
toString.
toString() - Method in class com.github.restdriver.clientdriver.HttpRealRequest
toString.
TRACE - Static variable in class com.github.restdriver.clientdriver.ClientDriverRequest.Method
 

V

verify() - Method in class com.github.restdriver.clientdriver.ClientDriver
Verifies that all expectations have been met and nothing unexpected has been requested.
verify(ClientDriverRequest, int) - Method in class com.github.restdriver.clientdriver.ClientDriver
 
verify(ClientDriverRequest, int) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
When you want to verify, that following request was executed, you can use this method.
verify(ClientDriverRequest, int) - Method in interface com.github.restdriver.clientdriver.jetty.ClientDriverJettyHandler
 
verify(ClientDriverRequest, int) - Method in class com.github.restdriver.clientdriver.jetty.DefaultClientDriverJettyHandler
 

W

waitFor(BodyCapture<?>, long, TimeUnit) - Static method in class com.github.restdriver.clientdriver.RestClientDriver
Waits for specified time for populated BodyCapture object.
whenCompleted(ClientDriverListener) - Method in class com.github.restdriver.clientdriver.ClientDriverRule
The given listener will be registered with the Client Driver and executes once execution has completed.
whenMatched(MatchedRequestHandler) - Method in class com.github.restdriver.clientdriver.ClientDriverExpectation
When a call is matched call a handler
withAnyParams() - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting any number of querystring parameters with any values.
withBasicAuth(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
withBody(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a String.
withBody(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting body content and type, where content is in the form of a String and type is in the form of a Pattern.
withBody(Pattern, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of a String.
withBody(Pattern, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting body content and type, where content is in the form of a Pattern and type is in the form of a Pattern.
withBody(Matcher<? extends String>, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting body content and type, where content is in the form of a Matcher and type is in the form of a Pattern.
withContentType(String) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
Deprecated.
You shouldn't need to use this method any more. Use one of the creator methods which specifies a content-type.
withHeader(String, Matcher<? extends String>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting a specific header name and value matcher.
withHeader(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting a specific header name and value pair.
withHeader(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting a specific header name and value pair, where value is in the form of a Pattern.
withHeader(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
Set headers on the response.
withHeaders(Map<String, Object>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting a map of header name and value pairs.
within(long, TimeUnit) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
Sets the amount of time to allow this response to match within.
withMethod(ClientDriverRequest.Method) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
 
withoutHeader(String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting a specific header name not to be present on the request.
withParam(String, String) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, int) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, long) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, boolean) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, Object) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, Pattern) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParam(String, Matcher<? extends String>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting query-string parameters on the end of the url.
withParams(Map<String, Object>) - Method in class com.github.restdriver.clientdriver.ClientDriverRequest
Setter for expecting multiple query-string parameters on the end of the url.
withStatus(int) - Method in class com.github.restdriver.clientdriver.ClientDriverResponse
 
A B C D E G H I J K L M N O P R S T V W 
Skip navigation links

Copyright © 2016. All Rights Reserved.