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

A

AbstractDelaySettingsBuilder - Class in io.specto.hoverfly.junit.dsl
 
AbstractDelaySettingsBuilder(int, TimeUnit) - Constructor for class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 
adminPort - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
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.
any() - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
anyBody() - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
anyMethod(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
anyMethod(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
anyQueryParams() - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
APPLICATION_JSON - Static variable in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
APPLICATION_XML - Static variable in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
apply(Statement, Description) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Log warning if HoverflyRule is annotated with Rule
atLeast(int) - Static method in class io.specto.hoverfly.junit.verification.HoverflyVerifications
 
atLeastOnce() - Static method in class io.specto.hoverfly.junit.verification.HoverflyVerifications
 
atMost(int) - Static method in class io.specto.hoverfly.junit.verification.HoverflyVerifications
 

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 an instance of Hoverfly
blankMatcher() - Static method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
body(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
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 using HttpBodyConverter to match on exactly
body(RequestFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
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
 
body() - Method in class io.specto.hoverfly.junit.dsl.SingleQuoteHttpBodyConverter
 
build() - Method in class io.specto.hoverfly.junit.api.HoverflyClient.Builder
 
build() - Method in class io.specto.hoverfly.junit.core.config.LocalHoverflyConfig
 
build() - Method in class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
 
build() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Validate and build HoverflyConfiguration
build() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
build() - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
build() - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
Builder() - Constructor for class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
Builder() - Constructor for class io.specto.hoverfly.junit.core.model.Request.Builder
 

C

capture(String) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Stores what's currently been captured in the currently assigned file, reset simulations and journal logs, then starts capture again ready to store in the new file once complete.
captureAllHeaders() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Set to capture all request headers
captureHeaders - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
captureHeaders(String...) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Specifies which request headers to capture
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
contains(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
contentType() - Method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
contentType() - Method in class io.specto.hoverfly.junit.dsl.SingleQuoteHttpBodyConverter
 
created(String) - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
Builds a 201 response with a given location header value
created() - Static method in class io.specto.hoverfly.junit.dsl.ResponseCreators
 
createDefault() - Static method in interface io.specto.hoverfly.junit.api.HoverflyClient
Static factory method for default Hoverfly client
custom() - Static method in interface io.specto.hoverfly.junit.api.HoverflyClient
Static factory method for creating a HoverflyClient.Builder

D

DEFAULT_ADMIN_PORT - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
DEFAULT_HTTPS_ADMIN_PORT - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
DEFAULT_PROXY_PORT - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
defaultPath(String) - Static method in interface io.specto.hoverfly.junit.core.SimulationSource
Creates a simulation from the file located in default hoverfly resource path which is relative to src/test/resources/hoverfly
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
delete(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
deleteJournal() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
deleteSimulation() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
destination - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
destination(String) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Sets destination filter to what target urls to simulate or capture
destination(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
destination - Variable in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
DestinationCommand - Class in io.specto.hoverfly.junit.api.command
 
DestinationCommand() - Constructor for class io.specto.hoverfly.junit.api.command.DestinationCommand
 
DestinationCommand(String) - Constructor for class io.specto.hoverfly.junit.api.command.DestinationCommand
 
disableTemplating() - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
 
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
endsWith(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
equals(Object) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
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.Request
 
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
 
equalsTo(Object) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
equalsToJson(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
equalsToJson(HttpBodyConverter) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
equalsToXml(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
equalsToXml(HttpBodyConverter) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
exactlyMatches(String) - Static method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
exactMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
ExactMatcher - Class in io.specto.hoverfly.junit.dsl.matchers
 
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

FieldMatcher - Class in io.specto.hoverfly.junit.core.model
 
FieldMatcher(String, String, String, String, String, String, String) - Constructor for class io.specto.hoverfly.junit.core.model.FieldMatcher
 
FieldMatcher.Builder - Class in io.specto.hoverfly.junit.core.model
 
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
get(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
getAdminCertificate() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
getAdminPort() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
Gets the admin port Hoverfly is configured to run on
getArguments() - Method in class io.specto.hoverfly.junit.api.command.ModeCommand
 
getAuthHeaderName() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Get custom Hoverfly header name used by Http client to authenticate with secured Hoverfly proxy
getAuthHeaderValue() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Get Bearer token used by Http client to authenticate with secured Hoverfly proxy
getAuthToken() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
getBody() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getBody() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getBody() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getCaptureHeaders() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
getConfigInfo() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
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.api.command.DestinationCommand
 
getDestination() - Method in class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
getDestination() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
getDestination() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getDestination() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getEntries() - Method in class io.specto.hoverfly.junit.core.model.Journal
 
getExactMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getFieldMatcher() - Method in class io.specto.hoverfly.junit.dsl.matchers.ExactMatcher
 
getFieldMatcher() - Method in interface io.specto.hoverfly.junit.dsl.matchers.RequestFieldMatcher
 
getGlobalActions() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
getGlobMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getHeaders() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getHeaders() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getHeaders() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getHeadersWhitelist() - Method in class io.specto.hoverfly.junit.api.model.ModeArguments
 
getHealth() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
Check Hoverfly is healthy
getHost() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
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
 
getHoverflyInfo() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Gets configuration information from the running instance of Hoverfly.
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
 
getJournal() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
getJournal() - Method in class io.specto.hoverfly.junit.verification.VerificationData
 
getJsonMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getJsonPathMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getLatency() - Method in class io.specto.hoverfly.junit.core.model.JournalEntry
 
getMatchingStrategy() - Method in class io.specto.hoverfly.junit.api.model.ModeArguments
 
getMatchPattern() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
Get pattern which is set for any of the exact/regex matchers Throw exception if no match pattern is available.
getMethod() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getMethod() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getMiddleware() - Method in class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
getMode() - Method in class io.specto.hoverfly.junit.api.command.ModeCommand
 
getMode() - Method in class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
getMode() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Gets the currently activated Hoverfly mode
getMode() - Method in class io.specto.hoverfly.junit.core.model.JournalEntry
 
getModeArguments() - Method in class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
getPairs() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
getPath() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getPath() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getPattern() - Method in class io.specto.hoverfly.junit.dsl.matchers.ExactMatcher
 
getPattern() - Method in interface io.specto.hoverfly.junit.dsl.matchers.PlainTextFieldMatcher
 
getProxyCaCertificate() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
getProxyPort() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
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.Request
 
getQuery() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getRegexMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getRequest() - Method in class io.specto.hoverfly.junit.api.command.JournalSearchCommand
 
getRequest() - Method in class io.specto.hoverfly.junit.core.model.JournalEntry
 
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.Request
 
getResponse() - Method in class io.specto.hoverfly.junit.core.model.JournalEntry
 
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.config.HoverflyConfiguration
 
getScheme() - Method in class io.specto.hoverfly.junit.core.model.Request
 
getScheme() - Method in class io.specto.hoverfly.junit.core.model.RequestDetails
 
getSimulation() - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
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.config.HoverflyConfiguration
Gets the path to SSL certificate
getSslConfigurer() - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
getSslConfigurer() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
getSslContext() - Method in class io.specto.hoverfly.junit.core.SslConfigurer
 
getSslKeyPath() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
Gets the path to SSL key
getStatus() - Method in class io.specto.hoverfly.junit.core.model.Response
 
getTimeStarted() - Method in class io.specto.hoverfly.junit.core.model.JournalEntry
 
getTrustManager() - Method in class io.specto.hoverfly.junit.core.SslConfigurer
 
getUrlPattern() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
getUsage() - Method in class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
getValue() - Method in enum io.specto.hoverfly.junit.core.HoverflyMode
 
getXmlMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
getXpathMatch() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
GlobalActions - Class in io.specto.hoverfly.junit.core.model
 
GlobalActions(List<DelaySettings>) - Constructor for class io.specto.hoverfly.junit.core.model.GlobalActions
 
globMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 

H

hashCode() - Method in class io.specto.hoverfly.junit.core.model.DelaySettings
 
hashCode() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
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.Request
 
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
headers(Map<String, List<String>>) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
host(String) - Method in class io.specto.hoverfly.junit.api.HoverflyClient.Builder
 
host(String) - Method in class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
Sets hostname for the external Hoverfly, default to localhost
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
HOVERFLY_AUTH_TOKEN - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
HOVERFLY_PROXY_CA_CERT - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
HOVERFLY_ROOT - Static variable in interface io.specto.hoverfly.junit.core.SimulationSource
 
HoverflyClient - Interface in io.specto.hoverfly.junit.api
Http client for querying Hoverfly admin endpoints
HoverflyClient.Builder - Class in io.specto.hoverfly.junit.api
HTTP client builder for Hoverfly admin API
HoverflyClientException - Exception in io.specto.hoverfly.junit.api
 
HoverflyClientException(String) - Constructor for exception io.specto.hoverfly.junit.api.HoverflyClientException
 
HoverflyConfig - Class in io.specto.hoverfly.junit.core
Config builder interface for common settings of Hoverfly
HoverflyConfig() - Constructor for class io.specto.hoverfly.junit.core.HoverflyConfig
 
HoverflyConfiguration - Class in io.specto.hoverfly.junit.core.config
Configurations for Hoverfly instance
HoverflyConstants - Class in io.specto.hoverfly.junit.core
 
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.
HoverflyDslException - Exception in io.specto.hoverfly.junit.dsl
 
HoverflyDslException(String) - Constructor for exception io.specto.hoverfly.junit.dsl.HoverflyDslException
 
HoverflyInfoView - Class in io.specto.hoverfly.junit.api.view
 
HoverflyInfoView(String, String, ModeArguments, HoverflyInfoView.Usage, HoverflyInfoView.Middleware) - Constructor for class io.specto.hoverfly.junit.api.view.HoverflyInfoView
 
HoverflyMatchers - Class in io.specto.hoverfly.junit.dsl.matchers
 
HoverflyMetaData - Class in io.specto.hoverfly.junit.core.model
 
HoverflyMetaData() - Constructor for class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
HoverflyMetaData(String) - 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.
HoverflyVerificationError - Error in io.specto.hoverfly.junit.verification
 
HoverflyVerificationError(String) - Constructor for error io.specto.hoverfly.junit.verification.HoverflyVerificationError
 
HoverflyVerifications - Class in io.specto.hoverfly.junit.verification
 
HTTP - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
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
HTTPS - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 

I

importSimulation(SimulationSource) - Method in class io.specto.hoverfly.junit.core.Hoverfly
Imports a simulation into Hoverfly from a SimulationSource
inCaptureMode() - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
inCaptureMode(HoverflyConfig) - Static method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
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
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() - 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
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
 
io.specto.hoverfly.junit.api - package io.specto.hoverfly.junit.api
 
io.specto.hoverfly.junit.api.command - package io.specto.hoverfly.junit.api.command
 
io.specto.hoverfly.junit.api.model - package io.specto.hoverfly.junit.api.model
 
io.specto.hoverfly.junit.api.view - package io.specto.hoverfly.junit.api.view
 
io.specto.hoverfly.junit.core - package io.specto.hoverfly.junit.core
 
io.specto.hoverfly.junit.core.config - package io.specto.hoverfly.junit.core.config
 
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.dsl.matchers - package io.specto.hoverfly.junit.dsl.matchers
 
io.specto.hoverfly.junit.rule - package io.specto.hoverfly.junit.rule
 
io.specto.hoverfly.junit.verification - package io.specto.hoverfly.junit.verification
 
isEncodedBody() - Method in class io.specto.hoverfly.junit.core.model.Response
 
isProxyLocalHost() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
isRemoteInstance() - Method in class io.specto.hoverfly.junit.core.config.HoverflyConfiguration
 
isTemplated() - Method in class io.specto.hoverfly.junit.core.model.Response
 
isValid() - Method in class io.specto.hoverfly.junit.dsl.AbstractDelaySettingsBuilder
 

J

Journal - Class in io.specto.hoverfly.junit.core.model
 
Journal(List<JournalEntry>) - Constructor for class io.specto.hoverfly.junit.core.model.Journal
 
JournalEntry - Class in io.specto.hoverfly.junit.core.model
 
JournalEntry(RequestDetails, Response, String, LocalDateTime, Integer) - Constructor for class io.specto.hoverfly.junit.core.model.JournalEntry
 
JournalSearchCommand - Class in io.specto.hoverfly.junit.api.command
 
JournalSearchCommand() - Constructor for class io.specto.hoverfly.junit.api.command.JournalSearchCommand
 
JournalSearchCommand(Request) - Constructor for class io.specto.hoverfly.junit.api.command.JournalSearchCommand
 
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
jsonMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
jsonPathMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
jsonWithSingleQuotes(String) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
Reads the input text with possible single quotes as delimiters and returns a String correctly formatted.

L

LOCALHOST - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
LocalHoverflyConfig - Class in io.specto.hoverfly.junit.core.config
Config builder interface for settings specific to Hoverfly managed internally
LocalHoverflyConfig() - Constructor for class io.specto.hoverfly.junit.core.config.LocalHoverflyConfig
 

M

marshallJson(Object, ObjectMapper) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
matches(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
matchesJsonPath(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
matchesXPath(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
method(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
ModeArguments - Class in io.specto.hoverfly.junit.api.model
 
ModeArguments() - Constructor for class io.specto.hoverfly.junit.api.model.ModeArguments
 
ModeArguments(List<String>) - Constructor for class io.specto.hoverfly.junit.api.model.ModeArguments
 
ModeCommand - Class in io.specto.hoverfly.junit.api.command
 
ModeCommand() - Constructor for class io.specto.hoverfly.junit.api.command.ModeCommand
 
ModeCommand(HoverflyMode) - Constructor for class io.specto.hoverfly.junit.api.command.ModeCommand
 
ModeCommand(HoverflyMode, ModeArguments) - Constructor for class io.specto.hoverfly.junit.api.command.ModeCommand
 

N

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

O

OBJECT_MAPPER - Static variable in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
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
patch(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
path(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
PlainTextFieldMatcher - Interface in io.specto.hoverfly.junit.dsl.matchers
 
port(int) - Method in class io.specto.hoverfly.junit.api.HoverflyClient.Builder
 
post(String) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
Creating a POST request matcher
post(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
printSimulationData() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Print the simulation data to console for debugging purpose.
proxyCaCert - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
proxyCaCert(String) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Set proxy CA certificate to validate the authenticity of a Hoverfly instance.
proxyLocalHost - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
proxyLocalHost(boolean) - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Deprecated.
proxyLocalHost() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Invoke to enable proxying of localhost requests By default it is false
proxyPort - Variable in class io.specto.hoverfly.junit.core.HoverflyConfig
 
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
put(PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 

Q

query(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
queryParam(String, Object...) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the request query
queryParam(String, PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
queryParam(PlainTextFieldMatcher, String) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 
queryParam(PlainTextFieldMatcher, PlainTextFieldMatcher) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
 

R

regexMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
remote() - Method in class io.specto.hoverfly.junit.core.HoverflyConfig
Enable remote Hoverfly configurations
RemoteHoverflyConfig - Class in io.specto.hoverfly.junit.core.config
Config builder interface for settings specific to external/remote Hoverfly instance
RemoteHoverflyConfig() - Constructor for class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
 
Request - Class in io.specto.hoverfly.junit.core.model
 
Request(String, String, String, String, String, String, Map<String, List<String>>) - Constructor for class io.specto.hoverfly.junit.core.model.Request
Deprecated.
Request(FieldMatcher, FieldMatcher, FieldMatcher, FieldMatcher, FieldMatcher, FieldMatcher, Map<String, List<String>>) - Constructor for class io.specto.hoverfly.junit.core.model.Request
 
Request.Builder - Class in io.specto.hoverfly.junit.core.model
 
RequestDetails - Class in io.specto.hoverfly.junit.core.model
 
RequestDetails(String, String, String, String, String, String, Map<String, List<String>>) - Constructor for class io.specto.hoverfly.junit.core.model.RequestDetails
 
RequestFieldMatcher - Interface in io.specto.hoverfly.junit.dsl.matchers
 
RequestMatcherBuilder - Class in io.specto.hoverfly.junit.dsl
A builder for Request
RequestResponsePair - Class in io.specto.hoverfly.junit.core.model
 
RequestResponsePair(Request, Response) - Constructor for class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
reset() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Delete existing simulations and journals
resetJournal() - Method in class io.specto.hoverfly.junit.core.Hoverfly
Delete journal logs
resetJournal() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
Response - Class in io.specto.hoverfly.junit.core.model
 
Response(Integer, String, boolean, 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.HoverflyDsl
Instantiates a new instance
response() - Static method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Deprecated.
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

scheme(String) - Method in class io.specto.hoverfly.junit.api.HoverflyClient.Builder
 
scheme(FieldMatcher) - Method in class io.specto.hoverfly.junit.core.model.Request.Builder
 
scheme - Variable in class io.specto.hoverfly.junit.dsl.StubServiceBuilder
 
searchJournal(Request) - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
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.
service(PlainTextFieldMatcher) - Static method in class io.specto.hoverfly.junit.dsl.HoverflyDsl
 
setArguments(ModeArguments) - Method in class io.specto.hoverfly.junit.api.command.ModeCommand
 
setDestination(String) - Method in class io.specto.hoverfly.junit.api.command.DestinationCommand
 
setDestination(String) - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
setDestination(String) - Method in class io.specto.hoverfly.junit.core.Hoverfly
Sets a new destination for the running instance of Hoverfly, overwriting the existing destination setting.
setHeadersWhitelist(List<String>) - Method in class io.specto.hoverfly.junit.api.model.ModeArguments
 
setJournal(Journal) - Method in class io.specto.hoverfly.junit.verification.VerificationData
 
setMatchingStrategy(String) - Method in class io.specto.hoverfly.junit.api.model.ModeArguments
 
setMode(HoverflyMode) - Method in class io.specto.hoverfly.junit.api.command.ModeCommand
 
setMode(HoverflyMode) - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
Update Hoverfly mode
setMode(HoverflyMode, ModeArguments) - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
Update Hoverfly mode with additional arguments
setMode(HoverflyMode) - Method in class io.specto.hoverfly.junit.core.Hoverfly
Changes the mode of the running instance of Hoverfly.
setRequest(Request) - Method in class io.specto.hoverfly.junit.api.command.JournalSearchCommand
 
setRequestType(Request.RequestType) - Method in class io.specto.hoverfly.junit.core.model.Request
 
setSimulation(Simulation) - Method in interface io.specto.hoverfly.junit.api.HoverflyClient
 
simulate(SimulationSource) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
Changes the Simulation used by Hoverfly It also reset the journal to ensure verification can be done on the new simulation source.
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
SingleQuoteHttpBodyConverter - Class in io.specto.hoverfly.junit.dsl
 
SingleQuoteHttpBodyConverter(String) - Constructor for class io.specto.hoverfly.junit.dsl.SingleQuoteHttpBodyConverter
 
sslCertificatePath(String) - Method in class io.specto.hoverfly.junit.core.config.LocalHoverflyConfig
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
SslConfigurer - Class in io.specto.hoverfly.junit.core
A component for configuring SSL context to enable HTTPS connection to hoverfly instance
sslKeyPath(String) - Method in class io.specto.hoverfly.junit.core.config.LocalHoverflyConfig
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
startsWith(String) - Static method in class io.specto.hoverfly.junit.dsl.matchers.HoverflyMatchers
 
status(int) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets the status
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

times(int) - Static method in class io.specto.hoverfly.junit.verification.HoverflyVerifications
 
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.DelaySettings
 
toString() - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
toString() - Method in class io.specto.hoverfly.junit.core.model.GlobalActions
 
toString() - Method in class io.specto.hoverfly.junit.core.model.HoverflyData
 
toString() - Method in class io.specto.hoverfly.junit.core.model.HoverflyMetaData
 
toString() - Method in class io.specto.hoverfly.junit.core.model.Request
 
toString() - Method in class io.specto.hoverfly.junit.core.model.RequestResponsePair
 
toString() - Method in class io.specto.hoverfly.junit.core.model.Response
 
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

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.
VerificationCriteria - Interface in io.specto.hoverfly.junit.verification
 
VerificationData - Class in io.specto.hoverfly.junit.verification
 
VerificationData() - Constructor for class io.specto.hoverfly.junit.verification.VerificationData
 
VerificationData(Journal) - Constructor for class io.specto.hoverfly.junit.verification.VerificationData
 
verify(RequestMatcherBuilder, VerificationCriteria) - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
verify(RequestMatcherBuilder) - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
verify(RequestMatcherBuilder) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
verify(RequestMatcherBuilder, VerificationCriteria) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
verify(Request, VerificationData) - Method in interface io.specto.hoverfly.junit.verification.VerificationCriteria
 
verifyAll() - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
verifyAll() - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 
verifyZeroRequestTo(StubServiceBuilder) - Method in class io.specto.hoverfly.junit.core.Hoverfly
 
verifyZeroRequestTo(StubServiceBuilder) - Method in class io.specto.hoverfly.junit.rule.HoverflyRule
 

W

wildCardMatches(String) - Static method in class io.specto.hoverfly.junit.core.model.FieldMatcher
 
willReturn(ResponseBuilder) - Method in class io.specto.hoverfly.junit.dsl.RequestMatcherBuilder
Sets the expected response
withAuthHeader() - Method in class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
Sets up custom authentication header for secured remote Hoverfly instance.
withAuthHeader(String) - Method in class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
Sets up custom authentication header for secured remote Hoverfly instance
withAuthToken() - Method in class io.specto.hoverfly.junit.api.HoverflyClient.Builder
Get token from environment variable "HOVERFLY_AUTH_TOKEN" to authenticate with admin API
withDelay(int, TimeUnit) - Method in class io.specto.hoverfly.junit.dsl.ResponseBuilder
Sets delay paramters.
withHttpsAdminEndpoint() - Method in class io.specto.hoverfly.junit.core.config.RemoteHoverflyConfig
Sets up to use admin endpoint over HTTPS

X

X_HOVERFLY_AUTHORIZATION - Static variable in class io.specto.hoverfly.junit.core.HoverflyConstants
 
xml(Object) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
xml(Object, ObjectMapper) - Static method in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
Converts a given object into json, and returns application/json content type
XML_MAPPER - Static variable in interface io.specto.hoverfly.junit.dsl.HttpBodyConverter
 
xmlMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
xpathMatch(String) - Method in class io.specto.hoverfly.junit.core.model.FieldMatcher.Builder
 
A B C D E F G H I J L M N O P Q R S T U V W X 
Skip navigation links