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

A

ApplicationUnderTest - Interface in ratpack.test
Provides the address of the running application.

B

BaseDirBuilder - Interface in ratpack.test.embed
 
body(byte[], String) - Method in interface ratpack.test.handling.RequestFixture
Sets the request body to be the given bytes, and adds a Content-Type request header of the given value.
body(String, String) - Method in interface ratpack.test.handling.RequestFixture
Sets the request body to be the given string in utf8 bytes, and adds a Content-Type request header of the given value.
build(Consumer<? super BaseDirBuilder>) - Method in interface ratpack.test.embed.BaseDirBuilder
 
build() - Method in interface ratpack.test.embed.BaseDirBuilder
Build the baseDir.

C

close() - Method in interface ratpack.test.embed.EmbeddedApp
Stops the server returned by EmbeddedApp.getServer().
close() - Method in interface ratpack.test.exec.ExecHarness
Shuts down the thread pool backing this harness.
close() - Method in class ratpack.test.ServerBackedApplicationUnderTest
 
create() - Method in class ratpack.test.RatpackMainServerFactory
 

D

delete() - Method in interface ratpack.test.http.TestHttpClient
 
delete(String) - Method in interface ratpack.test.http.TestHttpClient
 
deleteText() - Method in interface ratpack.test.http.TestHttpClient
 
deleteText(String) - Method in interface ratpack.test.http.TestHttpClient
 
dir(File) - Static method in interface ratpack.test.embed.BaseDirBuilder
 
dir(String) - Method in interface ratpack.test.embed.BaseDirBuilder
Creates a directory at the given path within the base dir.

E

EmbeddedApp - Interface in ratpack.test.embed
An application created and used at runtime, useful for functionally testing subsets of functionality.
ExecHarness - Interface in ratpack.test.exec
A utility for testing asynchronous support/service code.
execHarness() - Static method in class ratpack.test.UnitTest
Creates a new execution harness, for unit testing code that produces a promise.
ExecResult<T> - Interface in ratpack.test.exec
The result of an ExecHarness.execute(ratpack.func.Function) operation.
execute(Function<Execution, Promise<T>>) - Method in interface ratpack.test.exec.ExecHarness
Synchronously returns a promised value.

F

file(String) - Method in interface ratpack.test.embed.BaseDirBuilder
Returns a path for the given path within the base dir.
file(String, String) - Method in interface ratpack.test.embed.BaseDirBuilder
Creates a file with the given string content at the given path within the base dir.
fromChain(Action<? super Chain>) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler chain.
fromHandler(Handler) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
fromHandler(Path, Handler) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
fromHandlerFactory(HandlerFactory) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
fromHandlerFactory(Path, HandlerFactory) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
fromLaunchConfigBuilder(Function<? super LaunchConfigBuilder, ? extends LaunchConfig>) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application by building a LaunchConfig.
fromLaunchConfigBuilder(Path, Function<? super LaunchConfigBuilder, ? extends LaunchConfig>) - Static method in interface ratpack.test.embed.EmbeddedApp
Creates an embedded application by building a LaunchConfig with the given base dir.

G

get() - Method in interface ratpack.test.http.TestHttpClient
 
get(String) - Method in interface ratpack.test.http.TestHttpClient
 
getAddress() - Method in interface ratpack.test.ApplicationUnderTest
The address of the application under test, which is guaranteed to be accepting requests.
getAddress() - Method in interface ratpack.test.embed.EmbeddedApp
The address of the application under test, which is guaranteed to be accepting requests.
getAddress() - Method in class ratpack.test.ServerBackedApplicationUnderTest
 
getApplicationUnderTest() - Method in interface ratpack.test.http.TestHttpClient
 
getBodyBytes() - Method in interface ratpack.test.handling.HandlingResult
The response body, as bytes.
getBodyText() - Method in interface ratpack.test.handling.HandlingResult
The response body, interpreted as a utf8 string.
getClientError() - Method in interface ratpack.test.handling.HandlingResult
The client error raised if any, unless a custom client error handler is in use.
getControl() - Method in interface ratpack.test.exec.ExecHarness
The execution control for the harness.
getException() - Method in interface ratpack.test.handling.HandlingResult
The throwable thrown or given to Context.error(Throwable), unless a custom error handler is in use.
getHeaders() - Method in interface ratpack.test.handling.HandlingResult
The final response headers.
getHttpClient() - Method in interface ratpack.test.embed.EmbeddedApp
Creates a new test HTTP client that tests this embedded application.
getRegistry() - Method in interface ratpack.test.handling.HandlingResult
The final state of the context registry.
getRegistry() - Method in interface ratpack.test.handling.RequestFixture
A specification of the context registry.
getRequestRegistry() - Method in interface ratpack.test.handling.HandlingResult
The final state of the request registry.
getResponse() - Method in interface ratpack.test.http.TestHttpClient
 
getSentFile() - Method in interface ratpack.test.handling.HandlingResult
Indicates whether the result of invoking the handler was that it invoked one of the Response.sendFile(java.nio.file.Path) methods.
getServer() - Method in interface ratpack.test.embed.EmbeddedApp
The server for the application.
getStatus() - Method in interface ratpack.test.handling.HandlingResult
The response status information.
getText() - Method in interface ratpack.test.http.TestHttpClient
 
getText(String) - Method in interface ratpack.test.http.TestHttpClient
 

H

handle(Handler) - Method in interface ratpack.test.handling.RequestFixture
Invokes the given handler with a newly created Context based on the state of this fixture.
handle(Handler, Action<? super RequestFixture>) - Static method in class ratpack.test.UnitTest
Unit test a single Handler.
handle(Action<? super Chain>, Action<? super RequestFixture>) - Static method in class ratpack.test.UnitTest
Unit test a Handler chain.
handleChain(Action<? super Chain>) - Method in interface ratpack.test.handling.RequestFixture
Similar to RequestFixture.handle(ratpack.handling.Handler), but for testing a handler chain.
HandlerTimeoutException - Exception in ratpack.test.handling
Thrown when a handler under test takes too long to produce a result.
HandlerTimeoutException(HandlingResult, int) - Constructor for exception ratpack.test.handling.HandlerTimeoutException
Constructor.
HandlingResult - Interface in ratpack.test.handling
Represents the result of testing one or more handlers.
head() - Method in interface ratpack.test.http.TestHttpClient
 
head(String) - Method in interface ratpack.test.http.TestHttpClient
 
header(String, String) - Method in interface ratpack.test.handling.RequestFixture
Set a request header value.

I

isCalledNext() - Method in interface ratpack.test.handling.HandlingResult
Indicates whether the result of invoking the handler was that it delegated to a downstream handler.
isComplete() - Method in interface ratpack.test.exec.ExecResult
Is the result that the execution completed without a value being returned.
isSentResponse() - Method in interface ratpack.test.handling.HandlingResult
Indicates the the handler(s) invoked one of the Response.send() methods.

J

jar(File) - Static method in interface ratpack.test.embed.BaseDirBuilder
 

L

launchConfig(Path, Action<? super LaunchConfigBuilder>) - Method in interface ratpack.test.handling.RequestFixture
Configures the launch config to have the given base dir and given configuration.
launchConfig(Action<? super LaunchConfigBuilder>) - Method in interface ratpack.test.handling.RequestFixture
Configures the launch config to have no base dir and given configuration.

M

method(String) - Method in interface ratpack.test.handling.RequestFixture
Set the request method (case insensitive).

O

options() - Method in interface ratpack.test.http.TestHttpClient
 
options(String) - Method in interface ratpack.test.http.TestHttpClient
 

P

patch() - Method in interface ratpack.test.http.TestHttpClient
 
patch(String) - Method in interface ratpack.test.http.TestHttpClient
 
patchText() - Method in interface ratpack.test.http.TestHttpClient
 
patchText(String) - Method in interface ratpack.test.http.TestHttpClient
 
pathBinding(Map<String, String>) - Method in interface ratpack.test.handling.RequestFixture
Adds a path binding, with the given path tokens.
pathBinding(String, String, Map<String, String>) - Method in interface ratpack.test.handling.RequestFixture
Adds a path binding, with the given path tokens and parts.
post() - Method in interface ratpack.test.http.TestHttpClient
 
post(String) - Method in interface ratpack.test.http.TestHttpClient
 
postText() - Method in interface ratpack.test.http.TestHttpClient
 
postText(String) - Method in interface ratpack.test.http.TestHttpClient
 
put() - Method in interface ratpack.test.http.TestHttpClient
 
put(String) - Method in interface ratpack.test.http.TestHttpClient
 
putText() - Method in interface ratpack.test.http.TestHttpClient
 
putText(String) - Method in interface ratpack.test.http.TestHttpClient
 

R

ratpack.test - package ratpack.test
 
ratpack.test.embed - package ratpack.test.embed
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
ratpack.test.exec - package ratpack.test.exec
 
ratpack.test.handling - package ratpack.test.handling
 
ratpack.test.http - package ratpack.test.http
 
RatpackMainApplicationUnderTest - Class in ratpack.test
 
RatpackMainApplicationUnderTest() - Constructor for class ratpack.test.RatpackMainApplicationUnderTest
 
RatpackMainApplicationUnderTest(Map<String, String>) - Constructor for class ratpack.test.RatpackMainApplicationUnderTest
 
RatpackMainApplicationUnderTest(RatpackMain, Map<String, String>) - Constructor for class ratpack.test.RatpackMainApplicationUnderTest
 
RatpackMainServerFactory - Class in ratpack.test
 
RatpackMainServerFactory() - Constructor for class ratpack.test.RatpackMainServerFactory
 
RatpackMainServerFactory(Map<String, String>) - Constructor for class ratpack.test.RatpackMainServerFactory
 
RatpackMainServerFactory(RatpackMain, Map<String, String>) - Constructor for class ratpack.test.RatpackMainServerFactory
 
registry(Action<? super RegistrySpec>) - Method in interface ratpack.test.handling.RequestFixture
Configures the context registry.
rendered(Class<T>) - Method in interface ratpack.test.handling.HandlingResult
The object that was rendered to the response.
RequestFixture - Interface in ratpack.test.handling
A contrived request environment, suitable for unit testing Handler implementations.
requestFixture() - Static method in class ratpack.test.UnitTest
Create a request fixture, for unit testing of handlers.
requestSpec(Action<? super RequestSpec>) - Method in interface ratpack.test.http.TestHttpClient
 
resetRequest() - Method in interface ratpack.test.http.TestHttpClient
 
responseHeader(String, String) - Method in interface ratpack.test.handling.RequestFixture
Set a response header value.

S

ServerBackedApplicationUnderTest - Class in ratpack.test
 
ServerBackedApplicationUnderTest(Factory<RatpackServer>) - Constructor for class ratpack.test.ServerBackedApplicationUnderTest
 
stop() - Method in class ratpack.test.ServerBackedApplicationUnderTest
 

T

test(Consumer<? super TestHttpClient>) - Method in interface ratpack.test.embed.EmbeddedApp
Provides the given consumer with a test http client for this application, then closes this application.
TestHttpClient - Interface in ratpack.test.http
 
testHttpClient(ApplicationUnderTest) - Static method in class ratpack.test.http.TestHttpClients
 
testHttpClient(ApplicationUnderTest, Action<? super RequestSpec>) - Static method in class ratpack.test.http.TestHttpClients
 
TestHttpClients - Class in ratpack.test.http
 
TestHttpClients() - Constructor for class ratpack.test.http.TestHttpClients
 
timeout(int) - Method in interface ratpack.test.handling.RequestFixture
Sets the maximum time to allow the handler under test to produce a result.
tmpDir() - Static method in interface ratpack.test.embed.BaseDirBuilder
 
tmpJar() - Static method in interface ratpack.test.embed.BaseDirBuilder
 

U

UnitTest - Class in ratpack.test
Static methods for the unit testing of handlers.
uri(String) - Method in interface ratpack.test.handling.RequestFixture
The URI of the request.
A B C D E F G H I J L M O P R S T U 
Skip navigation links