Class LessThanAssertion
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.section.Assertion
-
- org.elasticsearch.test.rest.yaml.section.LessThanAssertion
-
- All Implemented Interfaces:
ExecutableSection
public class LessThanAssertion extends Assertion
Represents a lt assert section: - lt: { fields._ttl: 20000}
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY
-
-
Constructor Summary
Constructors Constructor Description LessThanAssertion(XContentLocation location, java.lang.String field, java.lang.Object expectedValue)
-
Method Summary
Modifier and Type Method Description protected voiddoAssert(java.lang.Object actualValue, java.lang.Object expectedValue)Executes the assertion comparing the actual value (parsed from the response) with the expected onestatic LessThanAssertionparse(XContentParser parser)-
Methods inherited from class org.elasticsearch.test.rest.yaml.section.Assertion
execute, getActualValue, getExpectedValue, getField, getLocation, resolveExpectedValue, safeClass
-
-
-
-
Constructor Detail
-
LessThanAssertion
public LessThanAssertion(XContentLocation location, java.lang.String field, java.lang.Object expectedValue)
-
-
Method Detail
-
parse
public static LessThanAssertion parse(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-