Package org.glassfish.jersey.test.spi
Interface TestContainer
-
public interface TestContainer
A test container. An instance of a test container can be started and stopped only once to prevent test corruption. For another test a new test container instance has to be created.- Author:
- Paul Sandoz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URI
getBaseUri()
Get the base URI of the application.ClientConfig
getClientConfig()
Get a client configuration specific to the test container.void
start()
Start the container.void
stop()
Stop the container.
-
-
-
Method Detail
-
getClientConfig
ClientConfig getClientConfig()
Get a client configuration specific to the test container.- Returns:
- a client configuration specific to the test container, otherwise
null
if there is no specific client configuration required.
-
getBaseUri
URI getBaseUri()
Get the base URI of the application.- Returns:
- the base URI of the application.
-
start
void start()
Start the container.
-
stop
void stop()
Stop the container.
-
-