CatalogUIAdapterConfiguration { public static CatalogUIAdapterConfiguration loadFromDictionary(Dictionary<String, ?> properties) throws ConfigurationException { return new CatalogUIAdapterConfiguration(properties); } private  CatalogUIAdapterConfiguration(Dictionary<String, ?> properties); static CatalogUIAdapterConfiguration loadFromDictionary(Dictionary<String, ?> properties); String getCatalogXmlRootElementName(); String getCatalogXmlRootNamespace(); XmlNamespaceContext getXmlNamespaceContext(); static final String KEY_XML_ROOT_ELEMENT_NAME; static final String KEY_XML_ROOT_ELEMENT_NS_URI; static final String XML_BINDING_KEY_PREFIX; static final String XML_BINDING_URI_SUFFIX; static final String XML_BINDING_PREFIX_SUFFIX; }
@Test(expected = ConfigurationException.class) public void testMissingXmlRootElementName() { configProperties.remove(CatalogUIAdapterConfiguration.KEY_XML_ROOT_ELEMENT_NAME); CatalogUIAdapterConfiguration.loadFromDictionary(configProperties); }
@Test(expected = ConfigurationException.class) public void testMissingXmlRootNamespace() { configProperties.remove(CatalogUIAdapterConfiguration.KEY_XML_ROOT_ELEMENT_NS_URI); CatalogUIAdapterConfiguration.loadFromDictionary(configProperties); }
@Test(expected = ConfigurationException.class) public void testMissingXmlRootNamespaceBinding() { configProperties.remove("xml.namespaceBinding.root.URI"); configProperties.remove("xml.namespaceBinding.root.prefix"); CatalogUIAdapterConfiguration.loadFromDictionary(configProperties); }