Package org.impalaframework.module.definition

Examples of org.impalaframework.module.definition.SimpleRootModuleDefinition


       
    }
   
    public void testThrowException() throws Exception {
       
        SimpleRootModuleDefinition a = new SimpleRootModuleDefinition("a", (String)null);
       
        expect(moduleRuntimeManager.initModule(application, a)).andThrow(new RuntimeException());
       
        replay(moduleRuntimeManager);
       
        try {
            processor.process(application, a, a);
            fail();
        }
        catch (RuntimeException e) {
            e.printStackTrace();
        }
       
        verify(moduleRuntimeManager);
       
        assertEquals(ModuleState.ERROR, a.getState());
    }
View Full Code Here


        super.setUp();
        graphModificationExtractor = new StickyGraphModificationExtractorDelegate();
    }
   
    public void testNullToRoot1() throws Exception {
        SimpleRootModuleDefinition root1 = definitionSet1();
        assertTransitions(null, root1, null, "a,c,d,root,b,e,f,g");
    }
View Full Code Here

        SimpleRootModuleDefinition root1 = definitionSet1();
        assertTransitions(null, root1, null, "a,c,d,root,b,e,f,g");
    }
   
    public void testNullToRoot2() throws Exception {
        SimpleRootModuleDefinition root2 = definitionSet2();
        assertTransitions(null, root2, null, "a,c,root,e,f");
    }
View Full Code Here

        SimpleRootModuleDefinition root2 = definitionSet2();
        assertTransitions(null, root2, null, "a,c,root,e,f");
    }
   
    public void testRoot1ToNull() throws Exception {
        SimpleRootModuleDefinition root1 = definitionSet1();
        assertTransitions(root1, null, "g,f,e,b,root,d,c,a", null);
    }
View Full Code Here

        SimpleRootModuleDefinition root1 = definitionSet1();
        assertTransitions(root1, null, "g,f,e,b,root,d,c,a", null);
    }
   
    public void testRoot2ToNull() throws Exception {
        SimpleRootModuleDefinition root2 = definitionSet2();
        assertTransitions(root2, null, "f,e,root,c,a", null);
    }
View Full Code Here

        SimpleRootModuleDefinition root2 = definitionSet2();
        assertTransitions(root2, null, "f,e,root,c,a", null);
    }

    public void testRoot1ToRoot2() throws Exception {
        SimpleRootModuleDefinition root1 = definitionSet1();
        SimpleRootModuleDefinition root2 = definitionSet2();
       
        assertTransitions(root1, root2, "b,d", null);
    }
View Full Code Here

       
        assertTransitions(root1, root2, "b,d", null);
    }
   
    public void testRoot2ToRoot1() throws Exception {
        SimpleRootModuleDefinition root1 = definitionSet1();
        SimpleRootModuleDefinition root2 = definitionSet2();
       
        assertTransitions(root2, root1, null, "d,b,g");
    }
View Full Code Here

       
        //d has no parent or dependencies
        ModuleDefinition d = newDefinition(definitions, null, "d", null);
       
        //root has siblings a to d, and depends on a
        SimpleRootModuleDefinition root = new SimpleRootModuleDefinition("root",
                new String[] {"root.xml"},
                new String[] {"a"},
                null,
                new ModuleDefinition[] {a, b, c, d}, null, null, true);
        //e has parent root, and depends on b an d
View Full Code Here

        //c same as set 1
        ModuleDefinition c = newDefinition(definitions, null, "c", null);
       
        //root has siblings a and c, and depends on a (same as set 1)
        SimpleRootModuleDefinition root = new SimpleRootModuleDefinition("root",
                new String[] {"root.xml"},
                new String[] {"a"},
                null,
                new ModuleDefinition[] {a, c}, null, null, true);
       
View Full Code Here

import org.impalaframework.spring.module.ModuleDefinitionPostProcessor;

public class ModuleDefinitionPostProcessorTest extends TestCase {

    public final void testPostProcessBeforeInitialization() {
        SimpleRootModuleDefinition rootDefinition = new SimpleRootModuleDefinition("project1", "context.xml");
        ModuleDefinitionPostProcessor postProcessor = new ModuleDefinitionPostProcessor(rootDefinition);
        TestSpecAware testAware = new TestSpecAware();
        postProcessor.postProcessBeforeInitialization(testAware, null);
        assertSame(rootDefinition, testAware.getModuleDefinition());
       
View Full Code Here

TOP

Related Classes of org.impalaframework.module.definition.SimpleRootModuleDefinition

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.