Class IsAfterAssertion

java.lang.Object
org.elasticsearch.test.rest.yaml.section.Assertion
org.elasticsearch.test.rest.yaml.section.IsAfterAssertion
All Implemented Interfaces:
ExecutableSection

public class IsAfterAssertion extends Assertion
Represents an is after assert section: - is_after: { result.some_instant: "2023-05-25T12:30:00.000Z" }
  • Constructor Details

    • IsAfterAssertion

      public IsAfterAssertion(org.elasticsearch.xcontent.XContentLocation location, String field, Object expectedValue)
  • Method Details

    • parse

      public static IsAfterAssertion parse(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • doAssert

      protected void doAssert(Object actualValue, Object expectedValue)
      Description copied from class: Assertion
      Executes the assertion comparing the actual value (parsed from the response) with the expected one
      Specified by:
      doAssert in class Assertion