Class IsTrueAssertion

java.lang.Object
org.opensearch.test.rest.yaml.section.Assertion
org.opensearch.test.rest.yaml.section.IsTrueAssertion
All Implemented Interfaces:
ExecutableSection

public class IsTrueAssertion extends Assertion
Represents an is_true assert section:

- is_true: get.fields.bar

  • Constructor Details

    • IsTrueAssertion

      public IsTrueAssertion(org.opensearch.core.xcontent.XContentLocation location, String field)
  • Method Details

    • parse

      public static IsTrueAssertion parse(org.opensearch.core.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