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:
parent
4b0db65877
commit
cb63a968fa
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue