diff --git a/jsontoxmllegacy/src/test/java/org/assimbly/jsontoxmllegacy/JsonToXmlLegacyTest.java b/jsontoxmllegacy/src/test/java/org/assimbly/jsontoxmllegacy/JsonToXmlLegacyTest.java
index 89ea009b..bf2472e2 100644
--- a/jsontoxmllegacy/src/test/java/org/assimbly/jsontoxmllegacy/JsonToXmlLegacyTest.java
+++ b/jsontoxmllegacy/src/test/java/org/assimbly/jsontoxmllegacy/JsonToXmlLegacyTest.java
@@ -380,6 +380,55 @@ public void testJsonXml_7_EATT() throws Exception {
);
}
+ /*****************************************
+ ** Example 8
+ *****************************************/
+
+ @Test
+ public void testJsonXml_8_EARFF() throws Exception {
+ compareInputJsonFileWithOutputXmlFile(
+ "jsontoxmllegacy_Element_Array_Root",
+ "json-to-xml/example_8.json",
+ "json-to-xml/example_8_EARFF.xml"
+ );
+ }
+
+ @Test
+ public void testJsonXml_8_EARTF() throws Exception {
+ compareInputJsonFileWithOutputXmlFile(
+ "jsontoxmllegacy_Element_Array_Root_NamespaceLenient",
+ "json-to-xml/example_8.json",
+ "json-to-xml/example_8_EARTF.xml"
+ );
+ }
+
+ @Test
+ public void testJsonXml_8_EARFT() throws Exception {
+ compareInputJsonFileWithOutputXmlFile(
+ "jsontoxmllegacy_Element_Array_Root_TypeHints",
+ "json-to-xml/example_8.json",
+ "json-to-xml/example_8_EARFT.xml"
+ );
+ }
+
+ @Test
+ public void testJsonXml_8_EARTT() throws Exception {
+ compareInputJsonFileWithOutputXmlFile(
+ "jsontoxmllegacy_Element_Array_Root_NamespaceLenient_TypeHints",
+ "json-to-xml/example_8.json",
+ "json-to-xml/example_8_EARTT.xml"
+ );
+ }
+
+ @Test
+ public void testJsonXml_8_EATT() throws Exception {
+ compareInputJsonFileWithOutputXmlFile(
+ "jsontoxmllegacy_Element_Array_NamespaceLenient_TypeHints",
+ "json-to-xml/example_8.json",
+ "json-to-xml/example_8_EATT.xml"
+ );
+ }
+
private void compareInputJsonFileWithOutputXmlFile(String routeName, String inputJsonFile, String outputXmlFile)
throws IOException, InterruptedException {
String defaultJson = IOUtils.toString(classLoader.getResourceAsStream(inputJsonFile), StandardCharsets.UTF_8);
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8.json b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8.json
new file mode 100644
index 00000000..27d0ec0c
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8.json
@@ -0,0 +1,3 @@
+{
+ "test": null
+}
\ No newline at end of file
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFF.xml b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFF.xml
new file mode 100644
index 00000000..237e6022
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFF.xml
@@ -0,0 +1,2 @@
+
+
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFT.xml b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFT.xml
new file mode 100644
index 00000000..69d4de0f
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARFT.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTF.xml b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTF.xml
new file mode 100644
index 00000000..902b3eac
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTF.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTT.xml b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTT.xml
new file mode 100644
index 00000000..69d4de0f
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EARTT.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EATT.xml b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EATT.xml
new file mode 100644
index 00000000..156a16f2
--- /dev/null
+++ b/jsontoxmllegacy/src/test/resources/json-to-xml/example_8_EATT.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file