Package | Description |
---|---|
ratpack.groovy.test | |
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.test | |
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
ratpack.test.http |
Test fixtures that provide HTTP client interfaces to applications under test.
|
ratpack.test.mock |
Support for creating mocks for remote APIs
|
ratpack.test.remote |
Modifier and Type | Class and Description |
---|---|
class |
GroovyRatpackMainApplicationUnderTest |
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyEmbeddedApp
A more Groovy version of
EmbeddedApp . |
Modifier and Type | Interface and Description |
---|---|
interface |
CloseableApplicationUnderTest
An
ApplicationUnderTest that is able to be shut down. |
Modifier and Type | Class and Description |
---|---|
class |
MainClassApplicationUnderTest
An application under test fixture that can be used to test a server started by a “main” method.
|
class |
ServerBackedApplicationUnderTest
An
ApplicationUnderTest implementation that manages a RatpackServer . |
Modifier and Type | Interface and Description |
---|---|
interface |
EmbeddedApp
An application created and used at runtime, useful for functionally testing subsets of functionality.
|
Modifier and Type | Method and Description |
---|---|
ApplicationUnderTest |
TestHttpClient.getApplicationUnderTest() |
Modifier and Type | Method and Description |
---|---|
static TestHttpClient |
TestHttpClient.testHttpClient(ApplicationUnderTest applicationUnderTest)
A method to create an instance of the default implementation of TestHttpClient.
|
static TestHttpClient |
TestHttpClient.testHttpClient(ApplicationUnderTest applicationUnderTest,
Action<? super RequestSpec> requestConfigurer)
A method to create an instance of the default implementation of TestHttpClient.
|
Modifier and Type | Class and Description |
---|---|
class |
MockApi
A test harness for simulating behavior of remote APIs by starting an
EmbeddedApp that will
handle requests based on the content of the received request. |
Modifier and Type | Method and Description |
---|---|
static io.remotecontrol.client.RemoteControlSupport<io.remotecontrol.groovy.ClosureCommand> |
RemoteControl.createSupport(ApplicationUnderTest application,
java.lang.String path,
io.remotecontrol.client.UnserializableResultStrategy unserializableResultStrategy) |
Constructor and Description |
---|
RemoteControl(ApplicationUnderTest application) |
RemoteControl(ApplicationUnderTest application,
java.lang.String path) |
RemoteControl(ApplicationUnderTest application,
java.lang.String path,
io.remotecontrol.client.UnserializableResultStrategy unserializableResultStrategy) |
RemoteControl(ApplicationUnderTest application,
io.remotecontrol.client.UnserializableResultStrategy unserializableResultStrategy) |