Skip navigation links
A B C D E F G H I J N O P Q R S T U V W 

A

AbstractDelaySettingsBuilder - Class in io.specto.hoverfly.junit.dsl
 
AbstractDelaySettingsBuilder(int, TimeUnit) - Constructor for class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 
adminPort(int) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Sets the admin port for Hoverfly
after() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Stops the managed instance of Hoverfly
andDelay(int, TimeUnit) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Adds service wide delay settings.
apply(Statement, Description) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Log warning if HoverflyRule is annotated with Rule

B

badRequest() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 400 response
before() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Starts in instance of Hoverfly
body() - Method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
body(String) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the request body
body(HttpBodyConverter) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the request body and the matching content-type header using HttpBodyConverter
body(String) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets the body
body(HttpBodyConverter) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
 

C

capture(String) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Stores what's currently been captured in the currently assigned file, wipes the simulation, then starts capture again ready to store in the new file once complete.
classpath(String) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from the classpath
close() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Stops the running Hoverfly process and clean up resources
configs() - Static method in class io.specto.hoverfly.junit.core.HoverflyConfig
New instance
contentType() - Method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
created(String) - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 201 response with a given location header value

D

DelaySettings - Class in io.specto.hoverfly.junit.core.model
 
DelaySettings(String, int, String) - Constructor for class io.specto.hoverfly.junit.core.model.DelaySettings
 
delete(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a DELETE request matcher
dsl(StubServiceBuilder...) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from the dsl You can pass in multiple StubServiceBuilder to simulate services with different base urls

E

empty() - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates no simulation
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.GlobalActions
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.Response
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.Simulation
 
exportSimulation(Path) - Method in class io.specto.hoverfly.junit.core.Hoverfly
Exports a simulation and stores it on the filesystem at the given path

F

file(Path) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from a file
forAll() - Method in class io.specto.hoverfly.junit.dsl.StubServiceDelaySettingsBuilder
 
forbidden() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 403 response
forMethod(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceDelaySettingsBuilder
 

G

get(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a GET request matcher
getAdminPort() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Gets the admin port Hoverfly is configured to run on
getBody() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getBody() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getConvertedDelay() - Method in class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 
getDelay() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
getDelays() - Method in class io.specto.hoverfly.junit.core.model.GlobalActions
 
getDelaySettings() - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Used to initialize GlobalActions.
getDestination() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getGlobalActions() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
getHeaders() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getHeaders() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getHost() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Returns the host for the remote instance of hoverfly
getHoverflyConfig() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Gets the validated HoverflyConfig object used by the current Hoverfly instance
getHoverflyData() - Method in class io.specto.hoverfly.junit.core.model.Simulation
 
getHoverflyMetaData() - Method in class io.specto.hoverfly.junit.core.model.Simulation
 
getHoverflyMode() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Gets started Hoverfly mode
getHttpMethod() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
getMethod() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getMode() - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
getPairs() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
getPath() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getProxyPort() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Gets the proxy port Hoverfly is configured to run on
getProxyPort() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Gets the proxy port this has run on, which could be useful when running Hoverfly on a random port.
getQuery() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getRequest() - Method in class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
getRequestResponsePairs() - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Used for retrieving all the requestResponsePairs that the builder contains
getRequestType() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getResponse() - Method in class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
getSchemaVersion() - Method in class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
getScheme() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
getSimulation() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Gets the simulation currently used by the running Hoverfly instance
getSimulation() - Method in interface io.specto.hoverfly.junit.core.SimulationSource
 
getSslCertificatePath() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Gets the path to SSL certificate
getSslKeyPath() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Gets the path to SSL key
getStatus() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getUrlPattern() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
GlobalActions - Class in io.specto.hoverfly.junit.core.model
 
GlobalActions(List<DelaySettings>) - Constructor for class io.specto.hoverfly.junit.core.model.GlobalActions
 

H

hashCode() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.GlobalActions
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.RequestMatcher
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.Response
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.Simulation
 
header(String, String) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets one request header
header(String, String) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets a header
Hoverfly - Class in io.specto.hoverfly.junit.core
A wrapper class for the Hoverfly binary.
Hoverfly(HoverflyConfig, HoverflyMode) - Constructor for class io.specto.hoverfly.junit.core.Hoverfly
Instantiates Hoverfly
Hoverfly(HoverflyMode) - Constructor for class io.specto.hoverfly.junit.core.Hoverfly
Instantiates Hoverfly
HoverflyConfig - Class in io.specto.hoverfly.junit.core
Config used to change the settings for Hoverfly
HoverflyData - Class in io.specto.hoverfly.junit.core.model
 
HoverflyData(Set<RequestResponsePair>, GlobalActions) - Constructor for class io.specto.hoverfly.junit.core.model.HoverflyData
 
HoverflyDsl - Class in io.specto.hoverfly.junit.dsl
Entry point to a DSL which can be used to generate a Hoverfly simulation.
HoverflyMetaData - Class in io.specto.hoverfly.junit.core.model
 
HoverflyMetaData() - Constructor for class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
HoverflyMode - Enum in io.specto.hoverfly.junit.core
Enums denoting the possible modes for Hoverfly
HoverflyRule - Class in io.specto.hoverfly.junit.rule
The HoverflyRule auto-spins up a Hoverfly process, and tears it down at the end of your tests.
HoverflyRule(HoverflyConfig) - Constructor for class io.specto.hoverfly.junit.rule.HoverflyRule
 
HttpBodyConverter - Interface in io.specto.hoverfly.junit.dsl
Interface for converting a java object into a http request body, and storing the appropriate content type header value

I

importSimulation(SimulationSource) - Method in class io.specto.hoverfly.junit.core.Hoverfly
Imports a simulation into Hoverfly from a SimulationSource
inCaptureMode(String) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in capture mode
inCaptureMode(String, HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in capture mode
inCaptureMode() - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
inCaptureMode(HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
inCaptureOrSimulationMode(String) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in capture mode if recorded file is not present, or in simulation mode if record file is present
inCaptureOrSimulationMode(String, HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in capture mode if recorded file is not present, or in simulation mode if record file is present
inSimulationMode(SimulationSource) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in simulate mode
inSimulationMode(SimulationSource, HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
inSimulationMode() - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in simulate mode with no data
inSimulationMode(HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
Instantiates a rule which runs Hoverfly in simulate mode with no data
io.specto.hoverfly.junit.core - package io.specto.hoverfly.junit.core
 
io.specto.hoverfly.junit.core.model - package io.specto.hoverfly.junit.core.model
 
io.specto.hoverfly.junit.dsl - package io.specto.hoverfly.junit.dsl
 
io.specto.hoverfly.junit.rule - package io.specto.hoverfly.junit.rule
 
isEncodedBody() - Method in class io.specto.hoverfly.junit.core.model.Response
 
isProxyLocalHost() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Whether localhost should be proxied
isRemoteInstance() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
True is a remote Hoverfly should be used
isValid() - Method in class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 

J

json(Object) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
Converts a given object into json, and returns application/json content type
json(Object, ObjectMapper) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
Converts a given object into json, and returns application/json content type

N

noContent() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 204 response

O

OBJECT_READER - Static variable in interface io.specto.hoverfly.junit.core.SimulationSource
 

P

patch(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a PATCH request matcher
post(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a POST request matcher
proxyLocalHost(boolean) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Controls whether we want to proxy localhost.
proxyPort(int) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Sets the proxy port for Hoverfly
put(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a PUT request matcher

Q

queryParam(String, Object...) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the request query

R

RequestMatcher - Class in io.specto.hoverfly.junit.core.model
 
RequestMatcher(String, String, String, String, String, String, Map<String, List<String>>, String) - Constructor for class io.specto.hoverfly.junit.core.model.RequestMatcher
 
RequestMatcherBuilder - Class in io.specto.hoverfly.junit.dsl
A builder for RequestMatcher
RequestResponsePair - Class in io.specto.hoverfly.junit.core.model
 
RequestResponsePair(RequestMatcher, Response) - Constructor for class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
reset() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Clears Hoverfly instance nn case of running Hoverfly in standalone.
Response - Class in io.specto.hoverfly.junit.core.model
 
Response(int, String, boolean, Map<String, List<String>>) - Constructor for class io.specto.hoverfly.junit.core.model.Response
 
response() - Static method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Instantiates a new instance
ResponseBuilder - Class in io.specto.hoverfly.junit.dsl
A builder for building Response
ResponseCreators - Class in io.specto.hoverfly.junit.dsl
Wrapper around a ResponseBuilder for building common types of responses
ResponseDelaySettingsBuilder - Class in io.specto.hoverfly.junit.dsl
 

S

serverError() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 500 response
service(String) - Static method in class io.specto.hoverfly.junit.dsl.HoverflyDsl
Instantiates a DSL for a given service.
simulate(SimulationSource) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Changes the Simulation used by Hoverfly
Simulation - Class in io.specto.hoverfly.junit.core.model
 
Simulation(HoverflyData, HoverflyMetaData) - Constructor for class io.specto.hoverfly.junit.core.model.Simulation
 
simulation(Simulation) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from a Simulation object
SimulationSource - Interface in io.specto.hoverfly.junit.core
Interface for converting a resource into a Simulation
sslCertificatePath(String) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Sets the SSL certificate file for overriding default Hoverfly self-signed certificate The file can be in any PEM encoded certificate, in .crt or .pem extensions
sslKeyPath(String) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Sets the SSL key file for overriding default Hoverfly SSL key The file can be in any PEM encoded key, in .key or .pem extensions
start() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Adds Hoverfly SSL certificate to the trust store Sets the proxy system properties to route through Hoverfly Starts Hoverfly
status(int) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets the status
stop() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Deprecated.
As of release 0.3.8, replaced by Hoverfly.close()
StubServiceBuilder - Class in io.specto.hoverfly.junit.dsl
Used as part of the DSL for creating a RequestResponsePair used within a Hoverfly Simulation.
StubServiceDelaySettingsBuilder - Class in io.specto.hoverfly.junit.dsl
 
success(String, String) - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 200 response with the following content
success() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 200 response
success(HttpBodyConverter) - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
 

T

to(StubServiceBuilder) - Method in class io.specto.hoverfly.junit.dsl.ResponseDelaySettingsBuilder
 
toPattern(String) - Method in class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 
toString() - Method in class io.specto.hoverfly.junit.core.model.Simulation
 

U

unauthorised() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 401 response
url(URL) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from a URL
url(String) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from a URL string
useRemoteInstance() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
By calling this it means a remote Hoverfly will be used - not started by Java.
useRemoteInstance(String) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
By calling this it means a remote Hoverfly will be used - not started by Java

V

valueOf(String) - Static method in enum io.specto.hoverfly.junit.core.HoverflyMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.specto.hoverfly.junit.core.HoverflyMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

willReturn(ResponseBuilder) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the expected response
withDelay(int, TimeUnit) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets delay paramters.
A B C D E F G H I J N O P Q R S T U V W 
Skip navigation links