Package org.objectweb.celtix.configuration

Examples of org.objectweb.celtix.configuration.Configurator


    }
   
    public void testConfigurators() {
        AbstractConfigurationImpl topConfiguration =
            (AbstractConfigurationImpl)new TopConfigurationBuilder().build("TOP");
        Configurator topConfigurator = topConfiguration.getConfigurator();
        assertNotNull(topConfigurator);
        assertTrue(topConfiguration == topConfigurator.getConfiguration());
        assertNull(topConfigurator.getHook());
        Collection<Configurator> topClients = topConfigurator.getClients();
        assertEquals(0, topClients.size());   
       
        AbstractConfigurationImpl leafConfiguration =
            (AbstractConfigurationImpl)new LeafConfigurationBuilder().build(topConfiguration, "LEAF");
        assertEquals(1, topClients.size());  
        Configurator leafConfigurator = leafConfiguration.getConfigurator();
        assertNotNull(leafConfigurator);
        assertTrue(leafConfiguration == leafConfigurator.getConfiguration());
        Configurator hook = leafConfigurator.getHook();
        assertNotNull(hook);
        assertTrue(hook == topConfigurator);
        Collection<Configurator> leafClients = leafConfigurator.getClients();
        assertEquals(0, leafClients.size());  
       
View Full Code Here

TOP

Related Classes of org.objectweb.celtix.configuration.Configurator

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.