assertEquals("package namespace", "urn:binding/generator", pack.getNamespace());
}
public void testMultiplePackage() throws Exception {
GlobalCustom custom = readCustom(MULTIPLE_PACKAGE);
PackageCustom pack = custom.getPackage("org.jibx.binding.generator");
assertTrue("property-access setting", pack.isPropertyAccess());
assertEquals("package namespace", "urn:binding.generator", pack.getNamespace());
pack = custom.getPackage("org.jibx.runtime");
assertTrue("property-access setting", pack.isPropertyAccess());
assertEquals("package namespace", "urn:runtime", pack.getNamespace());
pack = custom.getPackage("org.jibx.extras");
assertFalse("property-access setting", pack.isPropertyAccess());
assertNull("package namespace", pack.getNamespace());
assertEquals("simple name", "a", pack.convertName("a"));
assertEquals("simple name", "a", pack.convertName("A"));
assertEquals("simple name", "aName", pack.convertName("aName"));
assertEquals("leading underscore name", "aName",
pack.convertName("__aName"));
assertEquals("embedded underscores name", "aName",
pack.convertName("a__Name"));
assertEquals("complex name", "aBCDefgH",
pack.convertName("aB_cDefgH"));
}