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 |
---|---|
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(Class<?> mainClass) |
static CloseableApplicationUnderTest |
of(Class<?> mainClass,
Action<? super RegistrySpec> action) |
static CloseableApplicationUnderTest |
of(Factory<? extends RatpackServer> ratpackServer) |
static CloseableApplicationUnderTest |
of(RatpackServer ratpackServer) |
static CloseableApplicationUnderTest of(RatpackServer ratpackServer)
static CloseableApplicationUnderTest of(Factory<? extends RatpackServer> ratpackServer)
static CloseableApplicationUnderTest of(Class<?> mainClass)
static CloseableApplicationUnderTest of(Class<?> mainClass, Action<? super RegistrySpec> action) throws Exception
Exception
URI getAddress()
default TestHttpClient getHttpClient()