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.ThrowingBean
PRIMITIVE_VALUES
TEST_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, assertValue
assertAttribute, assertXsiNil, assertXsiNil, conversionAttr, conversionKey, conversionType, conversionType, updateConversionType, xsiNil
assertChildCount, assertChildCount, assertMultiline
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
assertEquals, 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, failSame
public TestBeanConverter(String name)
public void testConvertPrimitiveDefault() throws Exception
Exception
public void testConvertPrimitiveFormatXsd() throws Exception
Exception
public void testConvertNullUseAndRequireXsiNil() throws Exception
Exception
public void testFailNullRequireXsiNil() throws Exception
Exception
public void testPrimitiveArrayDefault() throws Exception
Exception
public void testListWithSequenceNumbers() throws Exception
Exception
public void testListWithElementsNamedByParent() throws Exception
Exception
public void testFailSimpleBeanRequireXsiType() throws Exception
Exception
public void testListOfSimpleBeanWithXsiTypeAndNulls() throws Exception
Exception
public void testListOfSimpleBeanToArrayOfSame() throws Exception
Exception
public void testSimpleBeanWithNamespace() throws Exception
Exception
public void testStringValuedConversions() throws Exception
Exception
public void testStringValuedConversionsWithTypeAttribute() throws Exception
Exception