Interface ExecutableSection
-
- All Known Implementing Classes:
Assertion,ContainsAssertion,DoSection,GreaterThanAssertion,GreaterThanEqualToAssertion,IsFalseAssertion,IsTrueAssertion,LengthAssertion,LessThanAssertion,LessThanOrEqualToAssertion,MatchAssertion,SetSection,TransformAndSetSection
public interface ExecutableSectionRepresents a test fragment that can be executed (e.g. api call, assertion)
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<NamedXContentRegistry.Entry>DEFAULT_EXECUTABLE_CONTEXTSDefault list ofExecutableSections available for tests.static 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 contextXContentLocationgetLocation()Get the location in the test that this was defined.static ExecutableSectionparse(XContentParser parser)
-
-
-
Field Detail
-
DEFAULT_EXECUTABLE_CONTEXTS
static final java.util.List<NamedXContentRegistry.Entry> DEFAULT_EXECUTABLE_CONTEXTS
Default list ofExecutableSections available for tests.
-
XCONTENT_REGISTRY
static final NamedXContentRegistry XCONTENT_REGISTRY
NamedXContentRegistrythat parses the default list ofExecutableSections available for tests.
-
-
Method Detail
-
parse
static ExecutableSection parse(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
getLocation
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
-
-