We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678c1c7 commit cc8150eCopy full SHA for cc8150e
core/src/test/java/org/everit/json/schema/ConstSchemaTest.java
@@ -64,6 +64,13 @@ public void toStringTest() {
64
assertEquals("{\"const\":true}", actual);
65
}
66
67
+ @Test
68
+ public void toStringWithNull() {
69
+ ConstSchema subject = ConstSchema.builder().permittedValue(null).build();
70
+ String actual = subject.toString();
71
+ assertEquals("{\"const\":null}", actual);
72
+ }
73
+
74
@Test
75
public void toStringWithObject() {
76
ConstSchema subject = ConstSchema.builder().permittedValue(new JSONObject("{\"a\":2}")).build();
0 commit comments