Interface ExecutableSection
- All Known Implementing Classes:
Assertion
,CloseToAssertion
,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
FieldsModifier and TypeFieldDescriptionstatic List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
Default list ofExecutableSection
s available for tests.static org.elasticsearch.common.xcontent.NamedXContentRegistry
NamedXContentRegistry
that parses the default list ofExecutableSection
s available for tests. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute(ClientYamlTestExecutionContext executionContext)
Executes the section passing in the execution contextorg.elasticsearch.common.xcontent.XContentLocation
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 List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTSDefault list ofExecutableSection
s available for tests. -
XCONTENT_REGISTRY
static final org.elasticsearch.common.xcontent.NamedXContentRegistry XCONTENT_REGISTRYNamedXContentRegistry
that parses the default list ofExecutableSection
s available for tests.
-
-
Method Details
-
parse
static ExecutableSection parse(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
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:
IOException
-