A B C D E F G H I M N P R S T U W 
All Classes All Packages

A

activeTracked - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
afterEach(ExtensionContext) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
apply(Statement, Description) - Method in class com.spotify.apollo.test.ServiceHelper
 
args(String...) - Method in class com.spotify.apollo.test.ServiceHelper
Run the service with the given program arguments.
args(String...) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
AsyncRequester - Class in com.spotify.apollo.test.experimental
 
AsyncRequester(ScheduledExecutorService) - Constructor for class com.spotify.apollo.test.experimental.AsyncRequester
 

B

beforeEach(ExtensionContext) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
belongsToFamily(StatusType.Family) - Static method in class com.spotify.apollo.test.unit.StatusTypeMatchers
Builds a matcher for StatusTypes belonging to a StatusType.Family.
ByteStringMatchers - Class in com.spotify.apollo.test.unit
 

C

call() - Method in class com.spotify.apollo.test.experimental.PerformanceFixture
Dummy implementation that should be overriden if doing perf tests with pump.
CallResult(long, boolean, int) - Constructor for class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
 
clear() - Method in class com.spotify.apollo.test.experimental.PerformanceFixture
 
clear() - Method in class com.spotify.apollo.test.StubClient
Clears the previously setup request to response mappings, but not the history of sent messages.
clearRequests() - Method in class com.spotify.apollo.test.StubClient
Clears the requests and responses tracked by this client.
client - Variable in class com.spotify.apollo.test.experimental.PerformanceFixture
 
close() - Method in class com.spotify.apollo.test.ServiceHelper
 
close() - Method in class com.spotify.apollo.test.StubClient
 
com.spotify.apollo.test - package com.spotify.apollo.test
 
com.spotify.apollo.test.experimental - package com.spotify.apollo.test.experimental
 
com.spotify.apollo.test.response - package com.spotify.apollo.test.response
 
com.spotify.apollo.test.unit - package com.spotify.apollo.test.unit
 
conf(String, Object) - Method in class com.spotify.apollo.test.ServiceHelper
Run the service with the key/value pair defined in the loaded configuration.
conf(String, Object) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
conf(String, String) - Method in class com.spotify.apollo.test.ServiceHelper
Run the service with the key/value pair defined in the loaded configuration.
conf(String, String) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
constant(ResponseWithDelay) - Static method in class com.spotify.apollo.test.response.Responses
 
create(AppInit, String) - Static method in class com.spotify.apollo.test.ServiceHelper
Creates a ServiceHelper using the given AppInit and service name.
create(AppInit, String) - Static method in class com.spotify.apollo.test.ServiceHelperExtension
 
create(AppInit, String, StubClient) - Static method in class com.spotify.apollo.test.ServiceHelper
Creates a ServiceHelper using the given AppInit, service name and stub client.
create(AppInit, String, StubClient) - Static method in class com.spotify.apollo.test.ServiceHelperExtension
 
create(Request) - Method in interface com.spotify.apollo.test.response.ResponseSource
 
create(Request, Response<ByteString>) - Static method in class com.spotify.apollo.test.StubClient.RequestResponsePair
 
createMetric() - Method in class com.spotify.apollo.test.experimental.PerformanceFixture
Create a metric for tracking load tests.

D

disableMetaApi() - Method in class com.spotify.apollo.test.ServiceHelper
Don't set up /_meta/* routes for the application.
disableMetaApi() - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
doesNotHaveHeader(String) - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses without specific header.
domain(String) - Method in class com.spotify.apollo.test.ServiceHelper
Run the service in the given domain.
domain(String) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
drop() - Method in class com.spotify.apollo.test.FakeOngoingRequest
 

E

elapsed - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
 
executor - Variable in class com.spotify.apollo.test.experimental.AsyncRequester
 
executor - Variable in class com.spotify.apollo.test.experimental.PerformanceFixture
 

F

FakeOngoingRequest - Class in com.spotify.apollo.test
A mock service request used when injecting a request into an Apollo application.
FakeOngoingRequest(Request) - Constructor for class com.spotify.apollo.test.FakeOngoingRequest
Create a new mock service request holding an Apollo Request.
forResponse(Response<ByteString>) - Static method in class com.spotify.apollo.test.response.ResponseWithDelay
 
forResponse(Response<ByteString>, long, TimeUnit) - Static method in class com.spotify.apollo.test.response.ResponseWithDelay
 
forwardingNonStubbedRequests(boolean) - Method in class com.spotify.apollo.test.ServiceHelper
Determines whether to forward requests for which nothing has been stubbed.
forwardingNonStubbedRequests(boolean) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 

G

getAverageTime() - Method in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
getDelayMillis() - Method in class com.spotify.apollo.test.response.ResponseWithDelay
 
getInstance() - Method in class com.spotify.apollo.test.ServiceHelper
Get the running service instance.
getReply() - Method in class com.spotify.apollo.test.FakeOngoingRequest
Get a future holding the reply.
getResponse() - Method in class com.spotify.apollo.test.response.ResponseWithDelay
 
getServiceHelper() - Method in class com.spotify.apollo.test.ServiceHelperExtension
 

H

hasHeader(String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher for a Request with a header present
hasHeader(String, String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher for a Request with header matching a value
hasHeader(String, Matcher<String>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher for a Request with header matching a value
hasHeader(String, Matcher<String>) - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses with matching header.
hasMethod(String) - Static method in class com.spotify.apollo.test.unit.RouteMatchers
 
hasNoHeaders() - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher for a Request with no headers
hasNoHeaders() - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses with no headers.
hasNoPayload() - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses with no payload.
hasNoQueryParameters() - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request that has no query parameters
hasPayload(Matcher<? super T>) - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses with matching payload.
hasPayloadMatching(Matcher<ByteString>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request which has a payload matching the specified Matcher
hasPayloadUtf8Matching(Matcher<String>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request which has a payload with a String value matching the specified Matcher
hasQueryParameter(String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request that has a query parameter with the specified key
hasQueryParameter(String, String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request that has a query parameter with the specified value
hasQueryParameter(String, Matcher<Iterable<? extends String>>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
Matches a Request that has a query parameter with the specified values
hasStatus(Matcher<StatusType>) - Static method in class com.spotify.apollo.test.unit.ResponseMatchers
Builds a matcher for Responses with matching status.
hasUri(String) - Static method in class com.spotify.apollo.test.unit.RouteMatchers
 
hasUriAndMethod(String, String) - Static method in class com.spotify.apollo.test.unit.RouteMatchers
Build a matcher.

I

in(long, TimeUnit) - Method in class com.spotify.apollo.test.StubClient.StubbedResponseBuilder
Configure delay before the response should be sent.
isExpired() - Method in class com.spotify.apollo.test.FakeOngoingRequest
 

M

metadata() - Method in class com.spotify.apollo.test.FakeOngoingRequest
 
method(String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
 

N

NO_ARGS - Static variable in class com.spotify.apollo.test.ServiceHelper
 
NoMatchingResponseFoundException(String) - Constructor for exception com.spotify.apollo.test.StubClient.NoMatchingResponseFoundException
 

P

PerformanceFixture - Class in com.spotify.apollo.test.experimental
 
PerformanceFixture() - Constructor for class com.spotify.apollo.test.experimental.PerformanceFixture
 
PerformanceFixture(int) - Constructor for class com.spotify.apollo.test.experimental.PerformanceFixture
 
pump(int, int, ResponseTimeMetric) - Method in class com.spotify.apollo.test.experimental.PerformanceFixture
Run a load test with the given parameters.
pump(int, int, ResponseTimeMetric, Callable<ListenableFuture<T>>) - Method in class com.spotify.apollo.test.experimental.AsyncRequester
 

R

rate - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
 
reply(Response<ByteString>) - Method in class com.spotify.apollo.test.FakeOngoingRequest
 
request() - Method in class com.spotify.apollo.test.FakeOngoingRequest
 
request() - Method in class com.spotify.apollo.test.StubClient.RequestResponsePair
 
request(Request) - Method in class com.spotify.apollo.test.ServiceHelper
Make a call to the running application and return a CompletionStage of the response.
request(String, String) - Method in class com.spotify.apollo.test.ServiceHelper
Makes a call on the given uri.
request(String, String, ByteString) - Method in class com.spotify.apollo.test.ServiceHelper
Makes a call on the given uri.
request(String, URI) - Method in class com.spotify.apollo.test.ServiceHelper
Makes a call on the given uri.
request(String, URI, ByteString) - Method in class com.spotify.apollo.test.ServiceHelper
Makes a call on the given uri.
RequestMatchers - Class in com.spotify.apollo.test.unit
Provides Hamcrest matcher utilities for matching requests.
RequestResponsePair() - Constructor for class com.spotify.apollo.test.StubClient.RequestResponsePair
 
requestsAndResponses() - Method in class com.spotify.apollo.test.StubClient
Returns all the requests sent to this stub client, together with their associated responses.
resetConf(String) - Method in class com.spotify.apollo.test.ServiceHelper
Reset a key in the configuration
resetConf(String) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
resolveParameter(ParameterContext, ExtensionContext) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
respond(Response<ByteString>) - Method in class com.spotify.apollo.test.StubClient
Configure a constant (i.e., all matching requests will always result in the same response) response for some request.
respond(ResponseSource) - Method in class com.spotify.apollo.test.StubClient
Configure a response source for matching requests.
response() - Method in class com.spotify.apollo.test.StubClient.RequestResponsePair
 
ResponseMatchers - Class in com.spotify.apollo.test.unit
Provides Hamcrest matcher utilities for matching Response.
Responses - Class in com.spotify.apollo.test.response
 
ResponseSource - Interface in com.spotify.apollo.test.response
 
ResponseTimeMetric - Class in com.spotify.apollo.test.experimental
 
ResponseTimeMetric.CallResult - Class in com.spotify.apollo.test.experimental
 
ResponseWithDelay - Class in com.spotify.apollo.test.response
 
RouteMatchers - Class in com.spotify.apollo.test.unit
A matcher that will compare the method and URI.
RouteMatchers() - Constructor for class com.spotify.apollo.test.unit.RouteMatchers
 

S

scheme(String) - Method in class com.spotify.apollo.test.ServiceHelper
Set the scheme to be used for relative request uris on this ServiceHelper instance.
scheme(String) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
send(Request) - Method in class com.spotify.apollo.test.StubClient
 
sentRequests() - Method in class com.spotify.apollo.test.StubClient
Returns all the requests sent to this stub client.
sequence(Iterable<ResponseWithDelay>) - Static method in class com.spotify.apollo.test.response.Responses
 
service(String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher checking the Request.service() field
service(Matcher<String>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
A matcher for the service field in a request
serviceClient() - Method in class com.spotify.apollo.test.ServiceHelper
Get a Client that allows to make requests to the service created by this helper
ServiceHelper - Class in com.spotify.apollo.test
A JUnit 4 TestRule for running tests against an apollo service.
ServiceHelperExtension - Class in com.spotify.apollo.test
A JUnit 5 extension for running tests against an apollo service.
setCallback(Function<ResponseTimeMetric.CallResult, Void>) - Method in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
start() - Method in class com.spotify.apollo.test.ServiceHelper
Starts the service, blocking for maximum timeoutSeconds until it has come up.
startTimeoutSeconds(int) - Method in class com.spotify.apollo.test.ServiceHelper
Set the time to wait for the service to start before giving up.
startTimeoutSeconds(int) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
StatusTypeMatchers - Class in com.spotify.apollo.test.unit
Provides Hamcrest matcher utilities for matching StatusType.
stubClient() - Method in class com.spotify.apollo.test.ServiceHelper
A StubClient that can be used to mock outgoing application request responses.
StubClient - Class in com.spotify.apollo.test
A stub (http://www.martinfowler.com/articles/mocksArentStubs.html) client that allows you to preconfigure responses to certain messages, as well as verify whether expected messages are sent.
StubClient() - Constructor for class com.spotify.apollo.test.StubClient
 
StubClient(ScheduledExecutorService) - Constructor for class com.spotify.apollo.test.StubClient
 
StubClient.NoMatchingResponseFoundException - Exception in com.spotify.apollo.test
 
StubClient.RequestResponsePair - Class in com.spotify.apollo.test
 
StubClient.StubbedResponseBuilder - Class in com.spotify.apollo.test
Immutable response builder.
success - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric.CallResult
 
supportsParameter(ParameterContext, ExtensionContext) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 

T

to(String) - Method in class com.spotify.apollo.test.StubClient.StubbedResponseBuilder
Map the previously configured response or response source to a URI.
to(Matcher<Request>) - Method in class com.spotify.apollo.test.StubClient.StubbedResponseBuilder
Map the previously configured response or response source to any messages matching the supplied Matcher.
totalFailed - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
totalRejected - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
totalResponses - Variable in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 
track(ListenableFuture<T>, long, int) - Method in class com.spotify.apollo.test.experimental.ResponseTimeMetric
 

U

uri(String) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
 
uri(Matcher<String>) - Static method in class com.spotify.apollo.test.unit.RequestMatchers
 
utf8(Matcher<String>) - Static method in class com.spotify.apollo.test.unit.ByteStringMatchers
Matches a ByteString with utf8 value matching the specified Matcher

W

withCode(int) - Static method in class com.spotify.apollo.test.unit.StatusTypeMatchers
Builds a matcher for StatusTypes with specified status code.
withCode(StatusType) - Static method in class com.spotify.apollo.test.unit.StatusTypeMatchers
Builds a matcher for StatusTypes whose StatusType.code() matches the specified StatusType's status code.
withModule(ApolloModule) - Method in class com.spotify.apollo.test.ServiceHelper
 
withModule(ApolloModule) - Method in class com.spotify.apollo.test.ServiceHelperExtension
 
withReasonPhrase(Matcher<String>) - Static method in class com.spotify.apollo.test.unit.StatusTypeMatchers
Builds a matcher for StatusTypes with matching reason phrase.
A B C D E F G H I M N P R S T U W 
All Classes All Packages