Package org.impalaframework.module.monitor

Examples of org.impalaframework.module.monitor.ModuleChangeInfo


        listener.moduleContentsModified(event);

        verify(servletContext);

        info.add(new ModuleChangeInfo("p1"));
        info.add(new ModuleChangeInfo("p2"));
        info.add(new ModuleChangeInfo("p2"));

        event = new ModuleChangeEvent(info);

    }  
View Full Code Here


   
    public final void testEventsNonEmpty() throws Exception {

        ArrayList<ModuleChangeInfo> info = new ArrayList<ModuleChangeInfo>();

        info.add(new ModuleChangeInfo("p1"));

        ModuleChangeEvent event = new ModuleChangeEvent(info);
        ServletContext servletContext = createMock(ServletContext.class);
        final WebModuleChangeListener listener = new WebModuleChangeListener();
        listener.setServletContext(servletContext);
View Full Code Here

        BaseModuleChangeListener listener = new BaseModuleChangeListener();
        ArrayList<ModuleChangeInfo> info = new ArrayList<ModuleChangeInfo>();
        ModuleChangeEvent event = new ModuleChangeEvent(info);
        assertTrue(listener.getModifiedModules(event).isEmpty());
       
        info.add(new ModuleChangeInfo("p1"));
        info.add(new ModuleChangeInfo("p2"));
        info.add(new ModuleChangeInfo("p2"));
       
        event = new ModuleChangeEvent(info);
        Set<String> modifiedModules = listener.getModifiedModules(event);
        assertEquals(2, modifiedModules.size());
        assertTrue(modifiedModules.contains("p1"));
View Full Code Here

TOP

Related Classes of org.impalaframework.module.monitor.ModuleChangeInfo

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.