mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-05 20:35:37 -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
|
@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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user