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 @@ -48,6 +48,7 @@ public void testEmptyObject() throws JSONException {
48
48
49
49
assertNotNull (json );
50
50
assertTrue (json .isEmpty ());
51
+ jsonReader .close ();
51
52
}
52
53
53
54
@ Test
@@ -64,6 +65,7 @@ public void testSimpleObjectWithTwoElements() throws JSONException {
64
65
assertEquals ("red" , json .getString ("apple" ));
65
66
assertTrue (json .containsKey ("banana" ));
66
67
assertEquals ("yellow" , json .getString ("banana" ));
68
+ jsonReader .close ();
67
69
}
68
70
69
71
@ Test
@@ -78,6 +80,7 @@ public void testArray() throws JSONException {
78
80
79
81
JSONAssert .assertEquals ("{\" apple\" :\" red\" }" , jsonArr .get (0 ).toString (), JSONCompareMode .STRICT );
80
82
JSONAssert .assertEquals ("{\" banana\" :\" yellow\" }" , jsonArr .get (1 ).toString (), JSONCompareMode .STRICT );
83
+ jsonReader .close ();
81
84
}
82
85
83
86
@ Test
@@ -104,5 +107,6 @@ public void testNestedStructure() throws JSONException {
104
107
+ " \" Laurence Fishburne\" ,"
105
108
+ " \" Carrie-Anne Moss\" "
106
109
+ " ]" , jsonArr .toString (), JSONCompareMode .STRICT );
110
+ jsonReader .close ();
107
111
}
108
112
}
You can’t perform that action at this time.
0 commit comments