assertEquals("\n newline, 6 spaces, newline, 3 spaces\n ", top.string.get(1));
}
public void testWhitespaceMarshalling() throws Exception
{
SchemaBinding schema = XsdBinder.bind(new StringReader(XSD), null);
schema.setIgnoreUnresolvedFieldOrClass(false);
schema.setIgnoreWhitespacesInMixedContent(false);
ClassMetaData classMetaData = new ClassMetaData();
classMetaData.setImpl(Top.class.getName());
ElementBinding element = schema.getElement(new QName(NS, "top"));
assertNotNull(element);
element.setClassMetaData(classMetaData);
Top top = new Top();
top.string = new ArrayList();