1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

fixes test case to validate the input/output of the function being tested

This commit is contained in:
John J. Aylward 2015-10-12 14:49:18 -04:00
parent 4b0db65877
commit cb63a968fa

View file

@ -189,7 +189,8 @@ public class XMLTest {
@Test @Test
public void shouldHandleNullJSONXML() { public void shouldHandleNullJSONXML() {
JSONObject jsonObject= null; JSONObject jsonObject= null;
XML.toString(jsonObject); String actualXml=XML.toString(jsonObject);
assertEquals("generated XML does not equal expected XML","\"null\"",actualXml);
} }
/** /**