public abstract class ServerBackedApplicationUnderTest extends Object implements CloseableApplicationUnderTest
Constructor and Description |
---|
ServerBackedApplicationUnderTest() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Shuts down the application under test.
|
protected abstract RatpackServer |
createServer() |
URI |
getAddress()
The address of the application under test, which is guaranteed to be accepting requests.
|
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
test
getHttpClient, of, of, of, of
protected abstract RatpackServer createServer() throws Exception
Exception
public URI getAddress()
ApplicationUnderTest
getAddress
in interface ApplicationUnderTest
public void stop()
public void close()
CloseableApplicationUnderTest
The exact meaning of invoking this method is implementation dependent.
close
in interface AutoCloseable
close
in interface CloseableApplicationUnderTest