Skip to content

Commit cb63a96

Browse files
author
John J. Aylward
committed
fixes test case to validate the input/output of the function being tested
1 parent 4b0db65 commit cb63a96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

XMLTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ public void shouldHandleInvalidCDATABangInTag() {
189189
@Test
190190
public void shouldHandleNullJSONXML() {
191191
JSONObject jsonObject= null;
192-
XML.toString(jsonObject);
192+
String actualXml=XML.toString(jsonObject);
193+
assertEquals("generated XML does not equal expected XML","\"null\"",actualXml);
193194
}
194195

195196
/**

0 commit comments

Comments
 (0)