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
public void shouldHandleNullJSONXML() {
JSONObject jsonObject= null;
XML.toString(jsonObject);
String actualXml=XML.toString(jsonObject);
assertEquals("generated XML does not equal expected XML","\"null\"",actualXml);
}
/**