File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
json/object-reader/src/test/java/org/javaee7/json/object/reader Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public void testEmptyObject() throws JSONException {
42
42
43
43
assertNotNull (json );
44
44
assertTrue (json .isEmpty ());
45
+ jsonReader .close ();
45
46
}
46
47
47
48
@ Test
@@ -58,6 +59,7 @@ public void testSimpleObjectWithTwoElements() throws JSONException {
58
59
assertEquals ("red" , json .getString ("apple" ));
59
60
assertTrue (json .containsKey ("banana" ));
60
61
assertEquals ("yellow" , json .getString ("banana" ));
62
+ jsonReader .close ();
61
63
}
62
64
63
65
@ Test
@@ -72,6 +74,7 @@ public void testArray() throws JSONException {
72
74
73
75
JSONAssert .assertEquals ("{\" apple\" :\" red\" }" , jsonArr .get (0 ).toString (), JSONCompareMode .STRICT );
74
76
JSONAssert .assertEquals ("{\" banana\" :\" yellow\" }" , jsonArr .get (1 ).toString (), JSONCompareMode .STRICT );
77
+ jsonReader .close ();
75
78
}
76
79
77
80
@ Test
@@ -103,5 +106,6 @@ public void testNestedStructure() throws JSONException {
103
106
+ " \" Laurence Fishburne\" ,"
104
107
+ " \" Carrie-Anne Moss\" "
105
108
+ " ]" , jsonArr .toString (), JSONCompareMode .STRICT );
109
+ jsonReader .close ();
106
110
}
107
111
}
You can’t perform that action at this time.
0 commit comments