Search in sources :

Example 6 with Configuration

use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.

the class TestComponentLifecyclePluginProfile method testFooProfile.

public void testFooProfile() throws Exception {
    Configuration config = getConfiguration("component-lifecycle-plugin.xml", "foo");
    assertEquals(2, config.getComponentLifecyclePlugins().size());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 7 with Configuration

use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.

the class TestComponentLifecyclePluginProfile method testFooBarProfiles.

public void testFooBarProfiles() throws Exception {
    Configuration config = getConfiguration("component-lifecycle-plugin.xml", "foo", "bar");
    assertEquals(3, config.getComponentLifecyclePlugins().size());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 8 with Configuration

use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.

the class TestComponentPluginProfile method testNoProfile.

public void testNoProfile() throws Exception {
    Configuration config = getConfiguration("component-plugin-configuration.xml");
    Component component = config.getComponent("Component");
    assertEquals(1, component.getComponentPlugins().size());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration) Component(org.exoplatform.container.xml.Component)

Example 9 with Configuration

use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.

the class TestComponentProfile method testFooBarProfiles.

public void testFooBarProfiles() throws Exception {
    Configuration config = getConfiguration("component-configuration.xml", "foo", "bar");
    assertEquals(1, config.getComponents().size());
}
Also used : Configuration(org.exoplatform.container.xml.Configuration)

Example 10 with Configuration

use of org.exoplatform.container.xml.Configuration in project kernel by exoplatform.

the class TestComponentProfile method testNoProfile.

public void testNoProfile() throws Exception {
    Configuration config = getConfiguration("component-configuration.xml");
    assertEquals(0, config.getComponents().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