- field(String) - Method in interface ratpack.test.http.MultipartFileSpec
-
Specify the form field
- field(String, String) - Method in interface ratpack.test.http.MultipartFormSpec
-
Add a field to the multipart form
- file() - Method in interface ratpack.test.handling.RequestFixture
-
A specification of a file to upload (see RFC2388)
- file(String, String, String) - Method in interface ratpack.test.handling.RequestFixture
-
Uploads a file via a multipart form (see RFC2388)
- file() - Method in interface ratpack.test.http.MultipartFormSpec
-
A specification of a file to upload (see RFC2388)
- fork() - Method in interface ratpack.test.exec.ExecHarness
-
- form() - Method in interface ratpack.test.handling.RequestFixture
-
A specification of a multipart form (see RFC2388)
- form(Map<String, String>) - Method in interface ratpack.test.handling.RequestFixture
-
Sets the fields on a multipart form (see RFC2388)
- 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.
- fromHandlerFactory(Function<? super Registry, ? extends 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.
- fromHandlers(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.
- fromServer(RatpackServer) - Static method in interface ratpack.test.embed.EmbeddedApp
-
Creates an embedded application for the given server.
- fromServer(Factory<? extends RatpackServer>) - Static method in interface ratpack.test.embed.EmbeddedApp
-
Creates an embedded application for the given server.
- fromServer(ServerConfigBuilder, Action<? super RatpackServerSpec>) - Static method in interface ratpack.test.embed.EmbeddedApp
-
Creates an embedded application using the given server config, and server creating function.
- fromServer(ServerConfig, Action<? super RatpackServerSpec>) - Static method in interface ratpack.test.embed.EmbeddedApp
-
Creates an embedded application using the given server config, and server creating function.
- get() - Method in interface ratpack.test.http.TestHttpClient
-
Make a GET request with a path of "" this is the same as calling get("").
- get(String) - Method in interface ratpack.test.http.TestHttpClient
-
Make a GET request to the specified path.
- getAddress() - Method in interface ratpack.test.ApplicationUnderTest
-
The address of the application under test, which is guaranteed to be listening for requests.
- getAddress() - Method in interface ratpack.test.embed.EmbeddedApp
-
The address of the application under test, which is guaranteed to be listening for requests.
- getAddress() - Method in class ratpack.test.ServerBackedApplicationUnderTest
-
Returns the address to the root of the server, starting it if necessary.
- 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.
- getController() - Method in interface ratpack.test.exec.ExecHarness
-
- getCookies() - Method in interface ratpack.test.handling.HandlingResult
-
The cookies to be set as part of the response.
- getCookies(String) - Method in interface ratpack.test.http.TestHttpClient
-
Get cookies with Path= attribute equal to path and all its subpaths.
- getHandlerFactory() - Method in class ratpack.test.mock.MockApi
-
Retrieve the factory that generates handlers for requests.
- getHeaders() - Method in interface ratpack.test.handling.HandlingResult
-
The final response headers.
- getHttpClient() - Method in interface ratpack.test.ApplicationUnderTest
-
Creates a new test HTTP client that makes requests to this 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
-
- getRoot() - Method in interface ratpack.test.embed.EphemeralBaseDir
-
The root of the base dir.
- 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.
- getServer() - Method in class ratpack.test.mock.MockApi
-
- getStatus() - Method in interface ratpack.test.handling.HandlingResult
-
The response status information.
- getText() - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a GET request then calling ReceivedResponse.getBody() then TypedData.getText().
- getText(String) - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a GET request then calling ReceivedResponse.getBody() then TypedData.getText().
- params(Action<? super ImmutableMultimap.Builder<String, Object>>) - Method in interface ratpack.test.http.TestHttpClient
-
- patch() - Method in interface ratpack.test.http.TestHttpClient
-
Make a PATCH request with a path of "" this is the same as calling patch("").
- patch(String) - Method in interface ratpack.test.http.TestHttpClient
-
Make a PATCH request to the specified path.
- patchText() - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a PATCH request then calling ReceivedResponse.getBody() then TypedData.getText().
- patchText(String) - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a PATCH request then calling ReceivedResponse.getBody() then TypedData.getText().
- path(String) - Method in interface ratpack.test.embed.EphemeralBaseDir
-
Returns a path for the given path within the base dir.
- 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.
- pathBinding(String, String, Map<String, 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
-
Make a POST request with a path of "" this is the same as calling post("").
- post(String) - Method in interface ratpack.test.http.TestHttpClient
-
Make a POST request to the specified path.
- postText() - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a POST request then calling ReceivedResponse.getBody() then TypedData.getText().
- postText(String) - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a POST request then calling ReceivedResponse.getBody() then TypedData.getText().
- protocol(String) - Method in interface ratpack.test.handling.RequestFixture
-
Set the HTTP protocol for the request.
- put() - Method in interface ratpack.test.http.TestHttpClient
-
Make a PUT request with a path of "" this is the same as calling put("").
- put(String) - Method in interface ratpack.test.http.TestHttpClient
-
Make a PUT request to the specified path.
- putText() - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a PUT request then calling ReceivedResponse.getBody() then TypedData.getText().
- putText(String) - Method in interface ratpack.test.http.TestHttpClient
-
A convenience method for doing a PUT request then calling ReceivedResponse.getBody() then TypedData.getText().
- 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
-
Test fixtures for executing and evaluating Promise and Operation
outside of a server instance
- ratpack.test.handling - package ratpack.test.handling
-
Test fixtures for exercising
Handler implementations without
start a full
EmbeddedApp.
- ratpack.test.http - package ratpack.test.http
-
Test fixtures that provide HTTP client interfaces to applications under test.
- ratpack.test.mock - package ratpack.test.mock
-
Support for creating mocks for remote APIs
- receive(Request) - Method in interface ratpack.test.handling.HandlerFactory
-
- registry(Action<? super RegistrySpec>) - Method in interface ratpack.test.handling.RequestFixture
-
Configures the context registry.
- remoteAddress(HostAndPort) - Method in interface ratpack.test.handling.RequestFixture
-
Set the remote address from which the request is made.
- rendered(Class<T>) - Method in interface ratpack.test.handling.HandlingResult
-
The object that was rendered to the response.
- request(Action<? super RequestSpec>) - Method in interface ratpack.test.http.TestHttpClient
-
Executes the request as specified by the provided RequestSpec.
- request(String, Action<? super RequestSpec>) - Method in interface ratpack.test.http.TestHttpClient
-
Executes the request as specified by the provided RequestSpec against the provided path.
- RequestFixture - Interface in ratpack.test.handling
-
A contrived request environment, suitable for unit testing Handler implementations.
- requestFixture() - Static method in interface ratpack.test.handling.RequestFixture
-
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
-
Set the requestSpec back to a No Op default and clear the cookies.
- responseHeader(CharSequence, String) - Method in interface ratpack.test.handling.RequestFixture
-
Set a response header value.
- run(Action<? super Execution>) - Method in interface ratpack.test.exec.ExecHarness
-
Initiates an execution and blocks until it completes.
- run(Action<? super RegistrySpec>, Action<? super Execution>) - Method in interface ratpack.test.exec.ExecHarness
-
Initiates an execution and blocks until it completes.
- runSingle(Action<? super Execution>) - Static method in interface ratpack.test.exec.ExecHarness
-
- runSingle(Action<? super RegistrySpec>, Action<? super Execution>) - Static method in interface ratpack.test.exec.ExecHarness
-