Class ContainsAssertion
java.lang.Object
org.elasticsearch.test.rest.yaml.section.Assertion
org.elasticsearch.test.rest.yaml.section.ContainsAssertion
- All Implemented Interfaces:
ExecutableSection
-
Field Summary
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionContainsAssertion(XContentLocation location, String field, Object expectedValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidExecutes the assertion comparing the actual value (parsed from the response) with the expected onestatic ContainsAssertionparse(XContentParser parser) Methods inherited from class org.elasticsearch.test.rest.yaml.section.Assertion
execute, getActualValue, getExpectedValue, getField, getLocation, resolveExpectedValue, safeClass
-
Constructor Details
-
ContainsAssertion
-
-
Method Details
-
parse
- Throws:
IOException
-
doAssert
Description copied from class:AssertionExecutes the assertion comparing the actual value (parsed from the response) with the expected one
-