Package org.impalaframework.module.modification

Examples of org.impalaframework.module.modification.StickyModificationExtractor


        }
        catch (NoServiceException e) {
            assertEquals("No ModificationExtractor available for modification type STICKY", e.getMessage());
        }

        StickyModificationExtractor stickyModificationExtractor = new StickyModificationExtractor();

        Map<ModificationExtractorType, ModificationExtractor> map = new HashMap<ModificationExtractorType, ModificationExtractor>();
        map.put(ModificationExtractorType.STICKY, stickyModificationExtractor);
        registry.setModificationExtractors(map);
View Full Code Here


        assertNotNull(registry.getModificationExtractor(ModificationExtractorType.STICKY));
        assertNotNull(registry.getModificationExtractor("sticky"));
    }

    public void testRegistryWithStringMap() throws Exception {
        StickyModificationExtractor stickyModificationExtractor = new StickyModificationExtractor();

        Map<String, ModificationExtractor> map = new HashMap<String, ModificationExtractor>();
        map.put("sticky", stickyModificationExtractor);
        registry.setModificationExtractorMap(map);
View Full Code Here

        ModuleStateChange change3 = iterator.next();
        assertEquals("plugin3", change3.getModuleDefinition().getName());
        assertEquals(Transition.LOADED_TO_UNLOADED, change3.getTransition());
       
        //now show that the sticky calculator has the same set of changes, but omits the last one
        ModificationExtractor stickyCalculator = new StickyModificationExtractor();
        TransitionSet stickyTransitions = stickyCalculator.getTransitions(application, parentSpec1, parentSpec2);
        doAssertions(stickyTransitions, 3);
    }
View Full Code Here

    public final void testAddParentLocations() {
        RootModuleDefinition parentSpec1 = ModificationTestUtils.spec("app-context1.xml", "plugin1, plugin2, plugin4");
        RootModuleDefinition parentSpec2 = ModificationTestUtils.spec("app-context1.xml", "plugin1, plugin2, plugin3");

        //now show that the sticky calculator has the same set of changes, but omits the last one
        ModificationExtractor stickyCalculator = new StickyModificationExtractor();
        TransitionSet stickyTransitions = stickyCalculator.getTransitions(application, parentSpec1, parentSpec2);
       
        Collection<? extends ModuleStateChange> moduleTransitions = stickyTransitions.getModuleTransitions();
        assertEquals(1, moduleTransitions.size());
       
        Iterator<? extends ModuleStateChange> iterator = moduleTransitions.iterator();
View Full Code Here

TOP

Related Classes of org.impalaframework.module.modification.StickyModificationExtractor

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.