Class HamcrestJsonAssertion<T>

java.lang.Object
org.hamcrest.BaseMatcher<T>
uk.org.webcompere.modelassert.json.impl.CoreJsonAssertion<T,HamcrestJsonAssertion<T>>
uk.org.webcompere.modelassert.json.hamcrest.HamcrestJsonAssertion<T>
Type Parameters:
T - the type of input json
All Implemented Interfaces:
org.hamcrest.Matcher<T>, org.hamcrest.SelfDescribing, JsonNodeAssertDsl<HamcrestJsonAssertion<T>>, ArrayNodeDsl<HamcrestJsonAssertion<T>>, BooleanNodeDsl<HamcrestJsonAssertion<T>>, NumberComparisonDsl<HamcrestJsonAssertion<T>>, NumberNodeDsl<HamcrestJsonAssertion<T>>, ObjectNodeDsl<HamcrestJsonAssertion<T>>, Sizeable<HamcrestJsonAssertion<T>>, TextNodeDsl<HamcrestJsonAssertion<T>>, IsEqualToDsl<HamcrestJsonAssertion<T>>, TreeComparisonDsl<HamcrestJsonAssertion<T>>, Satisfies<HamcrestJsonAssertion<T>>

public class HamcrestJsonAssertion<T> extends CoreJsonAssertion<T,HamcrestJsonAssertion<T>>
Add strong typing to the CoreJsonAssertion to provide a hamcrest only assertion
  • Constructor Details

    • HamcrestJsonAssertion

      public HamcrestJsonAssertion(JsonProvider<T> jsonProvider)