public interface TestNgStrategy
Jersey Test calls testContainer(TestContainer) /
client(javax.ws.rs.client.Client) methods before testContainer() / client(). Strategy is not
supposed to create instances of test container / client. It's purpose is to appropriately store given instances for different
TestNG approaches defined by @BeforeXXX and @AfterXXX annotations.| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.client.Client |
client()
Return a JAX-RS client.
|
javax.ws.rs.client.Client |
client(javax.ws.rs.client.Client client)
Set a new JAX-RS client instance and return the old, previously stored, instance.
|
TestContainer |
testContainer()
Return a test container to run the tests in.
|
TestContainer |
testContainer(TestContainer testContainer)
Set a new test container instance to run the tests in and return the old, previously stored, instance.
|
TestContainer testContainer()
testContainer(TestContainer).null if the test container is not set.TestContainer testContainer(TestContainer testContainer)
testContainer - new container instance.null if the container is not set.javax.ws.rs.client.Client client()
client(javax.ws.rs.client.Client).null if the client is not set.javax.ws.rs.client.Client client(javax.ws.rs.client.Client client)
client - new client.null if the client is not set.Copyright © 2007-2016, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.