Package dev.aherscu.qa.jgiven.rest.steps
Class RestFixtures<SELF extends RestFixtures<SELF>>
- java.lang.Object
-
- com.tngtech.jgiven.base.StageBase<SELF>
-
- com.tngtech.jgiven.Stage<SELF>
-
- dev.aherscu.qa.jgiven.commons.utils.StageEx<SELF>
-
- dev.aherscu.qa.jgiven.commons.steps.GenericFixtures<RestScenarioType,SELF>
-
- dev.aherscu.qa.jgiven.rest.steps.RestFixtures<SELF>
-
- Type Parameters:
SELF
- the type of the subclass
- All Implemented Interfaces:
dev.aherscu.qa.jgiven.commons.model.ScenarioType<RestScenarioType>
@ThreadSafe public class RestFixtures<SELF extends RestFixtures<SELF>> extends dev.aherscu.qa.jgiven.commons.steps.GenericFixtures<RestScenarioType,SELF>
Generic REST client fixtures. Sets up a client.- Author:
- aherscu
-
-
Field Summary
Fields Modifier and Type Field Description protected ThreadLocal<jakarta.ws.rs.client.Client>
client
The given REST client.
-
Constructor Summary
Constructors Constructor Description RestFixtures()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SELF
a_REST_client(jakarta.ws.rs.client.Client aClient)
Keeps aClient
for later operations.protected jakarta.ws.rs.client.Client
thisClient()
-
-
-
Field Detail
-
client
@ProvidedScenarioState protected final ThreadLocal<jakarta.ws.rs.client.Client> client
The given REST client.
-
-
Method Detail
-
a_REST_client
public SELF a_REST_client(@Hidden jakarta.ws.rs.client.Client aClient)
Keeps aClient
for later operations.- Parameters:
aClient
- a REST client- Returns:
StageBase.self()
-
thisClient
protected final jakarta.ws.rs.client.Client thisClient()
-
-