mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
fixes test case to validate the input/output of the function being tested
This commit is contained in:
parent
4b0db65877
commit
cb63a968fa
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user