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

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

    public class ElasticSearchVerifications<T,​TDocument,​SELF extends ElasticSearchVerifications<T,​TDocument,​SELF>>
    extends dev.aherscu.qa.jgiven.commons.steps.GenericVerifications<ElasticSearchScenarioType<TDocument>,​SELF>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SELF the_document​(String id, org.hamcrest.Matcher<T> matcher)  
      SELF the_index​(Function<co.elastic.clients.elasticsearch._types.query_dsl.Query.Builder,​co.elastic.clients.util.ObjectBuilder<co.elastic.clients.elasticsearch._types.query_dsl.Query>> query, org.hamcrest.Matcher<Stream<T>> matcher)  
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.steps.GenericVerifications

        beforeScenarioConfigurePolling, eventually, eventually, eventually_assert_that, should_succeed, the_file_$_should_contain, the_file_$_should_match, the_JSON_file_$_should_contain
      • Methods inherited from class dev.aherscu.qa.jgiven.commons.utils.StageEx

        alert, attach, attachScreenshot, attachScreenshot, attachScreenshot, 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

      • response

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

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

      • ElasticSearchVerifications

        public ElasticSearchVerifications()
    • Method Detail

      • the_document

        public SELF the_document​(String id,
                                 org.hamcrest.Matcher<T> matcher)
      • the_index

        public SELF the_index​(Function<co.elastic.clients.elasticsearch._types.query_dsl.Query.Builder,​co.elastic.clients.util.ObjectBuilder<co.elastic.clients.elasticsearch._types.query_dsl.Query>> query,
                              org.hamcrest.Matcher<Stream<T>> matcher)