NullSchema extends Schema { public static Builder builder() { return new Builder(); } NullSchema(final Builder builder); static Builder builder(); @Override boolean equals(Object o); @Override int hashCode(); static final NullSchema INSTANCE; }
@Test public void failure() { TestSupport.failureOf(NullSchema.builder()) .expectedKeyword("type") .input("null") .expect(); }
@Test public void toStringTest() { NullSchema subject = NullSchema.builder() .description("it can only be null") .build(); assertThat(ResourceLoader.DEFAULT.readObj("tostring/null-schema.json"), sameJsonAs(new JSONObject(subject.toString()))); }