T - the server configuration typeS - the server instance typepublic interface ServerProvider<T,S>
| Modifier and Type | Method and Description |
|---|---|
T |
configure(TestContext testContext)
Configure the server using the given test context.
|
Class<S> |
getServerType()
Get the server type.
|
ServerInstance<S> |
start(TestContext testContext,
Application application,
T configuration)
Start the server using the given configuration object.
|
void |
stop(ServerInstance<S> serverInstance)
Stop the server.
|
T configure(TestContext testContext)
testContext - the test contextServerInstance<S> start(TestContext testContext, Application application, T configuration) throws Exception
testContext - the test contextapplication - the application annotationconfiguration - server configuration objectException - an exception thrown in the event server start failsvoid stop(ServerInstance<S> serverInstance) throws Exception
serverInstance - the server instanceException - an exceptions thrown in the event server stop failsCopyright © 2016–2018 Testify Project. All rights reserved.