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_CONTEXTSDefault list ofExecutableSections available for tests.static org.elasticsearch.common.xcontent.NamedXContentRegistryXCONTENT_REGISTRYNamedXContentRegistrythat parses the default list ofExecutableSections available for tests. -
Method Summary
Modifier and Type Method Description voidexecute(ClientYamlTestExecutionContext executionContext)Executes the section passing in the execution contextorg.elasticsearch.common.xcontent.XContentLocationgetLocation()Get the location in the test that this was defined.static ExecutableSectionparse(org.elasticsearch.common.xcontent.XContentParser parser)
-
Field Details
-
DEFAULT_EXECUTABLE_CONTEXTS
static final java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTSDefault list ofExecutableSections available for tests. -
XCONTENT_REGISTRY
static final org.elasticsearch.common.xcontent.NamedXContentRegistry XCONTENT_REGISTRYNamedXContentRegistrythat parses the default list ofExecutableSections 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
Executes the section passing in the execution context- Throws:
java.io.IOException
-