use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestContainerLifecyclePluginProfile method testFooProfile.
public void testFooProfile() throws Exception {
Configuration config = getConfiguration("container-lifecycle-plugin.xml", "foo");
assertEquals(2, config.getContainerLifecyclePlugins().size());
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestExternalComponentPluginsProfile method testFooProfile.
public void testFooProfile() throws Exception {
Configuration config = getConfiguration("external-component-plugins.xml", "foo");
int size = 0;
for (Iterator<ExternalComponentPlugins> it = config.getExternalComponentPluginsIterator(); it.hasNext(); ) {
ExternalComponentPlugins ecp = it.next();
assertEquals(2, ecp.getComponentPlugins().size());
size++;
}
assertEquals(2, size);
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestImportProfile method testNoProfile.
public void testNoProfile() throws Exception {
Configuration config = getConfiguration("import-configuration.xml");
assertEquals(1, config.getImports().size());
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestImportProfile method testFooProfile.
public void testFooProfile() throws Exception {
Configuration config = getConfiguration("import-configuration.xml", "foo");
assertEquals(2, config.getImports().size());
}
use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.
the class TestImportProfile method testFooBarProfiles.
public void testFooBarProfiles() throws Exception {
Configuration config = getConfiguration("import-configuration.xml", "foo", "bar");
assertEquals(3, config.getImports().size());
}
Aggregations