Class GreaterThanAssertion

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

public class GreaterThanAssertion extends Assertion
Represents a gt assert section:

- gt: { fields._ttl: 0}

  • Constructor Details

    • GreaterThanAssertion

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

    • parse

      public static GreaterThanAssertion 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