Search in sources :

Example 11 with Configuration

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());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 12 with Configuration

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);
}
Also used : Configuration(org.exoplatform.container.xml.Configuration) ExternalComponentPlugins(org.exoplatform.container.xml.ExternalComponentPlugins)

Example 13 with Configuration

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());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 14 with Configuration

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());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 15 with Configuration

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());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Aggregations

Configuration (org.exoplatform.container.xml.Configuration)37 Component (org.exoplatform.container.xml.Component)9 ExternalComponentPlugins (org.exoplatform.container.xml.ExternalComponentPlugins)5 ObjectParameter (org.exoplatform.container.xml.ObjectParameter)4 InitParams (org.exoplatform.container.xml.InitParams)3 ValueParam (org.exoplatform.container.xml.ValueParam)3 IBindingFactory (org.jibx.runtime.IBindingFactory)3 IUnmarshallingContext (org.jibx.runtime.IUnmarshallingContext)3 File (java.io.File)2 IOException (java.io.IOException)2 URL (java.net.URL)2 PrivilegedActionException (java.security.PrivilegedActionException)2 InputStream (java.io.InputStream)1 StringReader (java.io.StringReader)1 StringWriter (java.io.StringWriter)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 Method (java.lang.reflect.Method)1 Iterator (java.util.Iterator)1 List (java.util.List)1 Properties (java.util.Properties)1