Class IsAfterAssertion
java.lang.Object
org.elasticsearch.test.rest.yaml.section.Assertion
org.elasticsearch.test.rest.yaml.section.IsAfterAssertion
- All Implemented Interfaces:
ExecutableSection
Represents an is after assert section:
- is_after: { result.some_instant: "2023-05-25T12:30:00.000Z" }
-
Field Summary
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionIsAfterAssertion(org.elasticsearch.xcontent.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 IsAfterAssertionparse(org.elasticsearch.xcontent.XContentParser parser) Methods inherited from class org.elasticsearch.test.rest.yaml.section.Assertion
execute, getActualValue, getExpectedValue, getField, getLocation, resolveExpectedValue, safeClass
-
Constructor Details
-
IsAfterAssertion
-
-
Method Details
-
parse
public static IsAfterAssertion parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
doAssert
Description copied from class:AssertionExecutes the assertion comparing the actual value (parsed from the response) with the expected one
-