Class RestFixtures<SELF extends 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.
      • Fields inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        assertElementTimer, ATTACHEMENT_TRANSFORMER, clickTimer, currentStep, locateTimer, pollDelay, pollTimeout, retryPolicy, scrollIntoViewTimer, sendKeysTimer
    • 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 a Client for later operations.
      protected jakarta.ws.rs.client.Client thisClient()  
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.steps.GenericFixtures

        nothing
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        alert, attach, attachScreenshot, attachScreenshot, attachScreenshot, beforeScenarioConfigurePolling, context, element, elements, ensureElements, retry, safely, scrollIntoView
      • Methods inherited from class com.tngtech.jgiven.Stage

        and, but, comment, given, then, when, with
      • Methods inherited from class com.tngtech.jgiven.base.StageBase

        $, $, self
    • Field Detail

      • client

        @ProvidedScenarioState
        protected final ThreadLocal<jakarta.ws.rs.client.Client> client
        The given REST client.
    • Constructor Detail

      • RestFixtures

        public RestFixtures()
    • Method Detail

      • a_REST_client

        public SELF a_REST_client​(@Hidden
                                  jakarta.ws.rs.client.Client aClient)
        Keeps a Client for later operations.
        Parameters:
        aClient - a REST client
        Returns:
        StageBase.self()
      • thisClient

        protected final jakarta.ws.rs.client.Client thisClient()