Package org.exoplatform.container.xml

Examples of org.exoplatform.container.xml.Configuration


      assertEquals("foo", valueParam.getValue());
   }

   public void testFooBarProfiles() throws Exception
   {
      Configuration config = getConfiguration("init-param-configuration.xml", "foo", "bar");
      Component component = config.getComponent("Component");
      InitParams initParams = component.getInitParams();
      ValueParam valueParam = initParams.getValueParam("param");
      assertEquals("bar", valueParam.getValue());
   }
View Full Code Here


   {
      String basedir = System.getProperty("basedir");
      File f = new File(basedir + "/src/test/resources/configuration-no-schema.xml");
      ConfigurationUnmarshaller unmarshaller = new ConfigurationUnmarshaller();
      URL url = f.toURI().toURL();
      Configuration conf = unmarshaller.unmarshall(url);
      assertNotNull(conf);
   }
View Full Code Here

public class TestComponentProfile extends AbstractProfileTest
{

   public void testNoProfile() throws Exception
   {
      Configuration config = getConfiguration("component-configuration.xml");
      assertEquals(0, config.getComponents().size());
   }
View Full Code Here

      assertEquals(0, config.getComponents().size());
   }

   public void testFooProfile() throws Exception
   {
      Configuration config = getConfiguration("component-configuration.xml", "foo");
      assertEquals(1, config.getComponents().size());
   }
View Full Code Here

      assertEquals(1, config.getComponents().size());
   }

   public void testFooBarProfiles() throws Exception
   {
      Configuration config = getConfiguration("component-configuration.xml", "foo", "bar");
      assertEquals(1, config.getComponents().size());
   }
View Full Code Here

public class TestImportProfile extends AbstractProfileTest
{

   public void testNoProfile() throws Exception
   {
      Configuration config = getConfiguration("import-configuration.xml");
      assertEquals(1, config.getImports().size());
   }
View Full Code Here

      assertEquals(1, config.getImports().size());
   }

   public void testFooProfile() throws Exception
   {
      Configuration config = getConfiguration("import-configuration.xml", "foo");
      assertEquals(2, config.getImports().size());
   }
View Full Code Here

      assertEquals(2, config.getImports().size());
   }

   public void testFooBarProfiles() throws Exception
   {
      Configuration config = getConfiguration("import-configuration.xml", "foo", "bar");
      assertEquals(3, config.getImports().size());
   }
View Full Code Here

public class TestComponentLifecyclePluginProfile extends AbstractProfileTest
{

   public void testNoProfile() throws Exception
   {
      Configuration config = getConfiguration("component-lifecycle-plugin.xml");
      assertEquals(1, config.getComponentLifecyclePlugins().size());
   }
View Full Code Here

      assertEquals(1, config.getComponentLifecyclePlugins().size());
   }

   public void testFooProfile() throws Exception
   {
      Configuration config = getConfiguration("component-lifecycle-plugin.xml", "foo");
      assertEquals(2, config.getComponentLifecyclePlugins().size());
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.container.xml.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.