mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
fixes test case to validate the input/output of the function being tested
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user