"http://celtix.objectweb.org/configuration/types";
public void testStandardTypes() {
ConfigurationMetadata model = buildMetadata("meta1.xml");
assertEquals("http://celtix.objectweb.org/configuration/test/meta1",
model.getNamespaceURI());
Collection<ConfigurationItemMetadata> definitions = model.getDefinitions();
assertEquals(9, definitions.size());
ConfigurationItemMetadata definition = null;
definition = model.getDefinition("booleanItem");
assertNotNull(definition);
assertEquals("booleanItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "boolean"),
definition.getType());
assertEquals(LifecyclePolicy.STATIC, definition.getLifecyclePolicy());
definition = model.getDefinition("shortItem");
assertNotNull(definition);
assertEquals("shortItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "short"),
definition.getType());
definition = model.getDefinition("intItem");
assertNotNull(definition);
assertEquals("intItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "int"),
definition.getType());
definition = model.getDefinition("integerItem");
assertNotNull(definition);
assertEquals("integerItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "integer"),
definition.getType());
// assertNull(definition.getDescription());
assertEquals(LifecyclePolicy.PROCESS, definition.getLifecyclePolicy());
definition = model.getDefinition("longItem");
assertNotNull(definition);
assertEquals("longItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "long"),
definition.getType());
// assertEquals(definition.getName() + " description", definition.getDescription());
assertEquals(LifecyclePolicy.BUS, definition.getLifecyclePolicy());
definition = model.getDefinition("floatItem");
assertNotNull(definition);
assertEquals("floatItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "float"),
definition.getType());
definition = model.getDefinition("doubleItem");
assertNotNull(definition);
assertEquals("doubleItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "double"),
definition.getType());
// assertEquals(definition.getName() + " description", definition.getDescription());
assertEquals(LifecyclePolicy.DYNAMIC, definition.getLifecyclePolicy());
definition = model.getDefinition("stringItem");
assertNotNull(definition);
assertEquals("stringItem", definition.getName());
assertEquals(new QName(XMLConstants.W3C_XML_SCHEMA_NS_URI, "string"),
definition.getType());
definition = model.getDefinition("stringListItem");
assertNotNull(definition);
assertEquals("stringListItem", definition.getName());
assertEquals(new QName(TYPES_NAMESPACE_URI, "stringListType"),
definition.getType());
assertEquals(LifecyclePolicy.STATIC, definition.getLifecyclePolicy());