public class TestBeanConverter extends AbstractBeanConverterTestCase
BeanConverter methods. These are all
"out and back" tests to verify that we can read the XML that we produce
(and to show cases where we can't). Detailed tests (verifying specific
output) are in TestBean2XmlConverter and TestXml2BeanConverter.
Note that each conversion has a commented-out line that will print the generated XML. Uncommenting these lines may help you understand how conversion works in particular cases.
AbstractBeanConverterTestCase.BeanWithDifferentGetterAndSetter, AbstractBeanConverterTestCase.CalendarBean, AbstractBeanConverterTestCase.CircularBean1, AbstractBeanConverterTestCase.CircularBean2, AbstractBeanConverterTestCase.CompoundBean, AbstractBeanConverterTestCase.DateBean, AbstractBeanConverterTestCase.EnumBean, AbstractBeanConverterTestCase.MyDate, AbstractBeanConverterTestCase.MyEnum, AbstractBeanConverterTestCase.NonInstantiableBean, AbstractBeanConverterTestCase.PrimitiveValue, AbstractBeanConverterTestCase.ReadOnlyBean, AbstractBeanConverterTestCase.SelfReferencingBean, AbstractBeanConverterTestCase.SimpleBean, AbstractBeanConverterTestCase.StringableBean, AbstractBeanConverterTestCase.ThrowingBeanPRIMITIVE_VALUESTEST_NAMESPACE| Constructor and Description |
|---|
TestBeanConverter(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
testCalendarConversion() |
void |
testCompoundBeanDefault() |
void |
testConvertNullDefault() |
void |
testConvertNullUseAndRequireXsiNil() |
void |
testConvertPrimitiveDefault() |
void |
testConvertPrimitiveFormatXsd() |
void |
testConvertStringDefault() |
void |
testDateConversions() |
void |
testEnumRoundTrip() |
void |
testEnumRoundTripAsStringValue() |
void |
testFailNullRequireXsiNil() |
void |
testFailSimpleBeanRequireXsiType() |
void |
testListDefault() |
void |
testListOfSimpleBeanToArrayOfSame() |
void |
testListOfSimpleBeanWithXsiTypeAndNulls() |
void |
testListToSortedSet() |
void |
testListWithElementsNamedByParent() |
void |
testListWithSequenceNumbers() |
void |
testListWithXsiType() |
void |
testMapDefault() |
void |
testMapIntrospected() |
void |
testNestedCollections() |
void |
testPrimitiveArrayDefault() |
void |
testSimpleBeanDefault() |
void |
testSimpleBeanWithNamespace() |
void |
testStringListDefault() |
void |
testStringValuedConversions() |
void |
testStringValuedConversionsWithTypeAttribute() |
assertName, assertNameTypeValue, assertNameTypeValue, assertPrimitiveElement, assertType, assertValueassertAttribute, 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 TestBeanConverter(String name)
public void testConvertPrimitiveDefault()
throws Exception
Exceptionpublic void testConvertPrimitiveFormatXsd()
throws Exception
Exceptionpublic void testConvertNullUseAndRequireXsiNil()
throws Exception
Exceptionpublic void testFailNullRequireXsiNil()
throws Exception
Exceptionpublic void testPrimitiveArrayDefault()
throws Exception
Exceptionpublic void testListWithSequenceNumbers()
throws Exception
Exceptionpublic void testListWithElementsNamedByParent()
throws Exception
Exceptionpublic void testFailSimpleBeanRequireXsiType()
throws Exception
Exceptionpublic void testListOfSimpleBeanWithXsiTypeAndNulls()
throws Exception
Exceptionpublic void testListOfSimpleBeanToArrayOfSame()
throws Exception
Exceptionpublic void testSimpleBeanWithNamespace()
throws Exception
Exceptionpublic void testStringValuedConversions()
throws Exception
Exceptionpublic void testStringValuedConversionsWithTypeAttribute()
throws Exception
Exception