Package | Description |
---|---|
ratpack.test.embed |
Support for creating embedded applications at test time, for testing Ratpack features and extensions.
|
Modifier and Type | Method and Description |
---|---|
default EphemeralBaseDir |
EphemeralBaseDir.closeOnExit()
Add's a JVM shutdown hook that will
close() this base dir. |
static EphemeralBaseDir |
EphemeralBaseDir.dir(java.io.File dir)
Creates a new base dir, using the given dir as the root.
|
static EphemeralBaseDir |
EphemeralBaseDir.jar(java.io.File jarFile)
Creates a new base dir which is actually a jar at the given location.
|
static EphemeralBaseDir |
EphemeralBaseDir.tmpDir()
Creates a new base dir, using a newly created dir within the JVM's assigned temp dir.
|
static EphemeralBaseDir |
EphemeralBaseDir.tmpJar()
Creates a new base dir which is actually a jar created within the JVM's assigned temp dir.
|
Modifier and Type | Method and Description |
---|---|
default void |
EphemeralBaseDir.use(Action<? super EphemeralBaseDir> action)
Executes the given action with this base dir, then closes this base dir.
|