Class IsTrueAssertion
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.section.Assertion
-
- org.elasticsearch.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
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY
-
-
Constructor Summary
Constructors Constructor Description IsTrueAssertion(XContentLocation location, java.lang.String field)
-
Method Summary
Modifier and Type Method Description protected void
doAssert(java.lang.Object actualValue, java.lang.Object expectedValue)
Executes the assertion comparing the actual value (parsed from the response) with the expected onestatic IsTrueAssertion
parse(XContentParser parser)
-
Methods inherited from class org.elasticsearch.test.rest.yaml.section.Assertion
execute, getActualValue, getExpectedValue, getField, getLocation, resolveExpectedValue, safeClass
-
-
-
-
Constructor Detail
-
IsTrueAssertion
public IsTrueAssertion(XContentLocation location, java.lang.String field)
-
-
Method Detail
-
parse
public static IsTrueAssertion parse(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-