Class ElasticSearchActions<T,​TDocument,​SELF extends ElasticSearchActions<T,​TDocument,​SELF>>

  • All Implemented Interfaces:
    dev.aherscu.qa.jgiven.commons.model.ScenarioType<ElasticSearchScenarioType<TDocument>>

    public class ElasticSearchActions<T,​TDocument,​SELF extends ElasticSearchActions<T,​TDocument,​SELF>>
    extends dev.aherscu.qa.jgiven.commons.steps.GenericActions<ElasticSearchScenarioType<TDocument>,​SELF>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected ThreadLocal<Class<TDocument>> documentType  
      protected co.elastic.clients.elasticsearch.ElasticsearchClient elasticsearchClient  
      protected ThreadLocal<String> index  
      protected ThreadLocal<co.elastic.clients.elasticsearch.core.IndexResponse> response  
      • Fields inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        assertElementTimer, ATTACHEMENT_TRANSFORMER, clickTimer, currentStep, locateTimer, pollDelay, pollTimeout, retryPolicy, scrollIntoViewTimer, sendKeysTimer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SELF adding_single_document​(TDocument document, Function<TDocument,​String> indexedBy)  
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.steps.GenericActions

        comment, concatenate_$_files_from_$_into, deleting_directory, doing_nothing, doing_nothing, doing_nothing, failing_on_purpose_with, retrying, retrying, safely, safely
      • 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, given, then, when, with
      • Methods inherited from class com.tngtech.jgiven.base.StageBase

        $, $, self
    • Field Detail

      • response

        @ProvidedScenarioState
        protected final ThreadLocal<co.elastic.clients.elasticsearch.core.IndexResponse> response
      • elasticsearchClient

        @ExpectedScenarioState
        protected co.elastic.clients.elasticsearch.ElasticsearchClient elasticsearchClient
    • Constructor Detail

      • ElasticSearchActions

        public ElasticSearchActions()