Package org.impalaframework.module.spi

Examples of org.impalaframework.module.spi.ApplicationFactory


public class SimpleApplicationManagerTest extends TestCase {

    public void testGetCurrentApplication() throws Exception {
        SimpleApplicationManager manager = new SimpleApplicationManager();
        ApplicationFactory applicationFactory = createMock(ApplicationFactory.class);
        manager.setApplicationFactory(applicationFactory);
       
        Application application = createMock(Application.class);
        expect(applicationFactory.newApplication(null)).andReturn(application);
       
        replay(applicationFactory);
       
        assertNull(manager.getCurrentApplication());
       
View Full Code Here

TOP

Related Classes of org.impalaframework.module.spi.ApplicationFactory

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.