Class SubsetDsl<A>

java.lang.Object
uk.org.webcompere.modelassert.json.dsl.SubsetDsl<A>
Type Parameters:
A - the type of assertion
All Implemented Interfaces:
Satisfies<A>
Direct Known Subclasses:
ArrayNodes, BooleanNodes, NumberNodes, ObjectNodes, TextNodes

public class SubsetDsl<A> extends Object implements Satisfies<A>
Reduce the DSL down to a subset
  • Constructor Details

    • SubsetDsl

      public SubsetDsl(Satisfies<A> satisfies)
  • Method Details

    • satisfies

      public A satisfies(Condition condition)
      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