public interface ApplicationUnderTest
This will be called on demand. Implementations may bootstrap the application the first time the address is asked for.
Implementations do not need to be thread safe.
| Modifier and Type | Method and Description |
|---|---|
java.net.URI |
getAddress()
The address of the application under test, which is guaranteed to be accepting requests.
|
default TestHttpClient |
getHttpClient()
Creates a new test HTTP client that tests this application.
|
static CloseableApplicationUnderTest |
of(java.lang.Class<?> mainClass) |
static CloseableApplicationUnderTest |
of(java.lang.Class<?> mainClass,
ratpack.func.Action<? super ratpack.registry.RegistrySpec> action) |
static CloseableApplicationUnderTest |
of(ratpack.func.Factory<? extends ratpack.server.RatpackServer> ratpackServer) |
static CloseableApplicationUnderTest |
of(ratpack.server.RatpackServer ratpackServer) |
static CloseableApplicationUnderTest of(ratpack.server.RatpackServer ratpackServer)
static CloseableApplicationUnderTest of(ratpack.func.Factory<? extends ratpack.server.RatpackServer> ratpackServer)
static CloseableApplicationUnderTest of(java.lang.Class<?> mainClass)
static CloseableApplicationUnderTest of(java.lang.Class<?> mainClass, ratpack.func.Action<? super ratpack.registry.RegistrySpec> action) throws java.lang.Exception
java.lang.Exceptionjava.net.URI getAddress()
default TestHttpClient getHttpClient()