Interface ExecutableSection
- All Known Implementing Classes:
Assertion,CloseToAssertion,ContainsAssertion,DoSection,ExistsAssertion,GreaterThanAssertion,GreaterThanEqualToAssertion,IsAfterAssertion,IsFalseAssertion,IsTrueAssertion,LengthAssertion,LessThanAssertion,LessThanOrEqualToAssertion,MatchAssertion,MatchesInAnyOrderAssertion,NotExistsAssertion,SetSection,TransformAndSetSection
public interface ExecutableSection
Represents a test fragment that can be executed (e.g. api call, assertion)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<NamedXContentRegistry.Entry> Default list ofExecutableSections available for tests.static final NamedXContentRegistryNamedXContentRegistrythat parses the default list ofExecutableSections available for tests. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ClientYamlTestExecutionContext executionContext) Executes the section passing in the execution contextGet the location in the test that this was defined.static ExecutableSectionparse(XContentParser parser)
-
Field Details
-
DEFAULT_EXECUTABLE_CONTEXTS
Default list ofExecutableSections available for tests. -
XCONTENT_REGISTRY
NamedXContentRegistrythat parses the default list ofExecutableSections available for tests.
-
-
Method Details
-
parse
- Throws:
IOException
-
getLocation
XContentLocation getLocation()Get the location in the test that this was defined. -
execute
Executes the section passing in the execution context- Throws:
IOException
-