T - the client configuration typeC - the client typeP - the client supplier type, should be if not applicable Voidpublic interface ClientProvider<T,C,P>
| Modifier and Type | Method and Description |
|---|---|
T |
configure(TestContext testContext,
Application application,
URI baseURI)
Configure the client using the given server instance.
|
ClientInstance<C,P> |
create(TestContext testContext,
Application application,
URI baseURI,
T configuration)
Create and initialize the client instance using the given base URI and configuration
object.
|
void |
destroy(ClientInstance<C,P> clientInstance)
This method will dispose of client instance that was created.
|
default Class<P> |
getClientSupplierType()
The type of client supplier.
|
Class<C> |
getClientType()
The type of the client.
|
T configure(TestContext testContext, Application application, URI baseURI)
testContext - the test contextapplication - the application annotationbaseURI - the base server URIClientInstance<C,P> create(TestContext testContext, Application application, URI baseURI, T configuration)
testContext - the test contextapplication - the application annotationbaseURI - the base server URIconfiguration - client configuration objectvoid destroy(ClientInstance<C,P> clientInstance)
clientInstance - the client instance to dispose ofCopyright © 2016–2018 Testify Project. All rights reserved.