use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestContainerLifecyclePluginProfile method testFooBarProfiles.
public void testFooBarProfiles() throws Exception {
Configuration config = getConfiguration("container-lifecycle-plugin.xml", "foo", "bar");
assertEquals(3, config.getContainerLifecyclePlugins().size());
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestContainerLifecyclePluginProfile method testNoProfile.
public void testNoProfile() throws Exception {
Configuration config = getConfiguration("container-lifecycle-plugin.xml");
assertEquals(1, config.getContainerLifecyclePlugins().size());
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestExternalComponentPluginsProfile method testNoProfile.
public void testNoProfile() throws Exception {
Configuration config = getConfiguration("external-component-plugins.xml");
int size = 0;
for (Iterator<ExternalComponentPlugins> it = config.getExternalComponentPluginsIterator(); it.hasNext(); ) {
ExternalComponentPlugins ecp = it.next();
assertEquals(1, ecp.getComponentPlugins().size());
size++;
}
assertEquals(1, size);
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestExternalComponentPluginsProfile method testFooBarProfiles.
public void testFooBarProfiles() throws Exception {
Configuration config = getConfiguration("external-component-plugins.xml", "foo", "bar");
int size = 0;
for (Iterator<ExternalComponentPlugins> it = config.getExternalComponentPluginsIterator(); it.hasNext(); ) {
ExternalComponentPlugins ecp = it.next();
assertEquals(3, ecp.getComponentPlugins().size());
size++;
}
assertEquals(3, size);
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestField method getConfiguredCollection.
private XMLCollection getConfiguredCollection(String... profiles) throws Exception {
Configuration config = getConfiguration("field-configuration.xml", profiles);
Component a = config.getComponent(InitParamsHolder.class.getName());
ObjectParameter op = a.getInitParams().getObjectParam("test.configuration");
XMLObject o = op.getXMLObject();
XMLField xf = o.getField("role");
return xf.getCollection();
}
Aggregations