assertEquals("string name", "string", member.getXmlName());
assertTrue("string required", member.isRequired());
}
public void testMultiplePropertiesClasses() throws Exception {
GlobalCustom custom = readCustom(MULTIPLE_PROPERTIES_CLASSES);
ClassCustom clas = custom.getClassCustomization("org.jibx.binding.generator.DataClass2");
Collection members = clas.getMembers();
assertEquals("property count", 1, members.size());
ValueCustom member = clas.getMember("dataClass1s");
assertNotNull("dataClass1s member", member);
assertEquals("dataClass1s type", "java.util.List", member.getWorkingType());
assertEquals("dataClass1s name", "dataClass1s", member.getXmlName());
assertFalse("dataClass1s required", member.isRequired());
assertTrue("dataClass1s collection", member.isCollection());
assertEquals("dataClass1s type", "org.jibx.binding.generator.DataClass1", member.getItemType());
assertEquals("dataClass1s name", "dataClass1", member.getItemName());
clas = custom.getClassCustomization("org.jibx.binding.generator.DataClass1");
members = clas.getMembers();
assertEquals("property count", 4, members.size());
member = clas.getMember("boolean");
assertNotNull("boolean member", member);
assertEquals("boolean type", "boolean", member.getWorkingType());