Package | Description |
---|---|
ratpack.groovy.test.embed |
Support for creating Groovy based embedded applications.
|
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Interface and Description |
---|---|
interface |
GroovyEmbeddedApp
A highly configurable
EmbeddedApp implementation that allows the application to be defined in code at runtime. |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
GroovyEmbeddedApp.build(Closure<?> closure) |
Modifier and Type | Method and Description |
---|---|
static EmbeddedApp |
EmbeddedApp.fromChain(Action<? super Chain> action)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler chain.
|
static EmbeddedApp |
EmbeddedApp.fromHandler(Handler handler)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromHandler(Path baseDir,
Handler handler)
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromHandlerFactory(HandlerFactory handlerFactory)
Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromHandlerFactory(Path baseDir,
HandlerFactory handlerFactory)
Creates an embedded application with a default launch config (ephemeral port) and the given handler.
|
static EmbeddedApp |
EmbeddedApp.fromLaunchConfigBuilder(Function<? super LaunchConfigBuilder,? extends LaunchConfig> function)
Creates an embedded application by building a
LaunchConfig . |
static EmbeddedApp |
EmbeddedApp.fromLaunchConfigBuilder(Path baseDir,
Function<? super LaunchConfigBuilder,? extends LaunchConfig> function)
Creates an embedded application by building a
LaunchConfig with the given base dir. |