Interface ExecutableSection

All Known Implementing Classes:
Assertion, ContainsAssertion, DoSection, GreaterThanAssertion, GreaterThanEqualToAssertion, IsFalseAssertion, IsTrueAssertion, LengthAssertion, LessThanAssertion, LessThanOrEqualToAssertion, MatchAssertion, SetSection, TransformAndSetSection

public interface ExecutableSection
Represents a test fragment that can be executed (e.g. api call, assertion)
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTS
    Default list of ExecutableSections available for tests.
    static org.elasticsearch.common.xcontent.NamedXContentRegistry XCONTENT_REGISTRY
    NamedXContentRegistry that parses the default list of ExecutableSections available for tests.
  • Method Summary

    Modifier and Type Method Description
    void execute​(ClientYamlTestExecutionContext executionContext)
    Executes the section passing in the execution context
    org.elasticsearch.common.xcontent.XContentLocation getLocation()
    Get the location in the test that this was defined.
    static ExecutableSection parse​(org.elasticsearch.common.xcontent.XContentParser parser)  
  • Field Details

    • DEFAULT_EXECUTABLE_CONTEXTS

      static final java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTS
      Default list of ExecutableSections available for tests.
    • XCONTENT_REGISTRY

      static final org.elasticsearch.common.xcontent.NamedXContentRegistry XCONTENT_REGISTRY
      NamedXContentRegistry that parses the default list of ExecutableSections available for tests.
  • Method Details

    • parse

      static ExecutableSection parse​(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException
      Throws:
      java.io.IOException
    • getLocation

      org.elasticsearch.common.xcontent.XContentLocation getLocation()
      Get the location in the test that this was defined.
    • execute

      void execute​(ClientYamlTestExecutionContext executionContext) throws java.io.IOException
      Executes the section passing in the execution context
      Throws:
      java.io.IOException