Examples of ModuleContainer


Examples of org.impalaframework.module.ModuleContainer

*/
public class ChildModuleContainerTest extends TestCase {

    public void testChildContainer() {
        final ModuleDefinition[] strings = new ModuleDefinition[] { new SimpleModuleDefinition("p1"), new SimpleModuleDefinition("p2") };
        ModuleContainer container = new ModuleContainerImpl(strings);

        assertTrue(container.hasChildModuleDefinition("p1"));
        assertTrue(container.hasChildModuleDefinition("p2"));
        assertFalse(container.hasChildModuleDefinition("p3"));

        assertEquals(2, container.getChildModuleNames().size());
       
        //fail("To implement add() and remove() tests");
    }
View Full Code Here

Examples of org.openquark.cal.compiler.ModuleContainer

     *   This will be used with the workspace is saved and loaded.
     */
    protected CALWorkspace(ResourcePath.FilePath workspaceDescriptionFile) {
        this.nameToMetaModuleMap = new HashMap<ModuleName, MetaModule>();
        this.persistenceManager = new WorkspacePersistenceManager(this);
        this.moduleContainer = new ModuleContainer () {
            @Override
            public int getNModules() {
                return CALWorkspace.this.getNMetaModules();
            }
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.