public class TestXml2JsonConverter extends AbstractConversionTestCase
TEST_NAMESPACE| Constructor and Description |
|---|
TestXml2JsonConverter(String testName) |
| Modifier and Type | Method and Description |
|---|---|
void |
convertAndAssert(String expected,
ElementNode rootNode,
Xml2JsonOptions... options) |
void |
testArrayAsRepeatedElement() |
void |
testArrayPerXsiType() |
void |
testArrayWithNestedObject() |
void |
testChildAndGrandchildren() |
void |
testConvertAttributes() |
void |
testConvertAttributesDropsNamespacePrefix() |
void |
testConvertAttributesIgnoreXsiNamespace() |
void |
testConvertAttributesMatchNamespace() |
void |
testConvertAttributesWithTextContent() |
void |
testEmptyArrayPerXsiType() |
void |
testEmptyConversion() |
void |
testListPerXsiType() |
void |
testMixedContentWithWhitespace() |
void |
testPrimitivesWithXsiType() |
void |
testSetPerXsiType() |
void |
testSingleChild() |
void |
testStringEscaping() |
void |
testTwoChildren() |
void |
testUnquotedFieldnames() |
void |
testWhitespace() |
void |
testWrapWithParens() |
assertAttribute, assertXsiNil, assertXsiNil, conversionAttr, conversionKey, conversionType, conversionType, updateConversionType, xsiNilassertChildCount, assertChildCount, assertMultilinecountTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSamepublic TestXml2JsonConverter(String testName)
public void convertAndAssert(String expected, ElementNode rootNode, Xml2JsonOptions... options)
public void testChildAndGrandchildren()
throws Exception
Exceptionpublic void testPrimitivesWithXsiType()
throws Exception
Exceptionpublic void testArrayAsRepeatedElement()
throws Exception
Exceptionpublic void testArrayWithNestedObject()
throws Exception
Exceptionpublic void testMixedContentWithWhitespace()
throws Exception
Exceptionpublic void testConvertAttributesIgnoreXsiNamespace()
throws Exception
Exceptionpublic void testConvertAttributesDropsNamespacePrefix()
throws Exception
Exceptionpublic void testConvertAttributesWithTextContent()
throws Exception
Exception