Examples of SimpleRootModuleDefinition


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
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.