Class JsonAssertDslBuilders.At<A>

java.lang.Object
uk.org.webcompere.modelassert.json.dsl.JsonAssertDslBuilders.At<A>
Type Parameters:
A - the type of assertion
All Implemented Interfaces:
JsonNodeAssertDsl<A>, ArrayNodeDsl<A>, BooleanNodeDsl<A>, NumberComparisonDsl<A>, NumberNodeDsl<A>, ObjectNodeDsl<A>, Sizeable<A>, TextNodeDsl<A>, IsEqualToDsl<A>, TreeComparisonDsl<A>, Satisfies<A>
Enclosing class:
JsonAssertDslBuilders

public static class JsonAssertDslBuilders.At<A> extends Object implements JsonNodeAssertDsl<A>
Builder of an at condition, for JSON Pointer comparison
  • Constructor Details

    • At

      public At(Satisfies<A> satisfies, String path)
      Construct an at builder on a given assertion
      Parameters:
      satisfies - the target for more conditions
      path - the JSON pointer to the path being asserted
      See Also:
      • JsonNode.at(com.fasterxml.jackson.core.JsonPointer)
  • Method Details

    • satisfies

      public A satisfies(Condition condition)
      Description copied from interface: Satisfies
      Add a condition that the input JSON must satisfy
      Specified by:
      satisfies in interface Satisfies<A>
      Parameters:
      condition - the condition
      Returns:
      this for fluent calling