Package org.impalaframework.module.transition

Examples of org.impalaframework.module.transition.DefaultModuleStateChangeNotifier


    private ModuleStateChangeListener listener5;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        notifier = new DefaultModuleStateChangeNotifier();
        change = new ModuleStateChange(Transition.UNLOADED_TO_LOADED, new SimpleModuleDefinition("myModule"));
        List<ModuleStateChangeListener> listeners = new ArrayList<ModuleStateChangeListener>();
        listener1 = createMock(ModuleStateChangeListener.class);
        listener2 = createMock(ModuleStateChangeListener.class);
        listener3 = createMock(ModuleStateChangeListener.class);
View Full Code Here


        listeners.add(listener5);
        notifier.setListeners(listeners);
    }

    public final void testNotify1() {
        notifier = new DefaultModuleStateChangeNotifier();
        assertNotNull(notifier.getListeners());
        assertEquals(0, notifier.getListeners().size());

        ModuleStateChangeListener listener1 = createMock(ModuleStateChangeListener.class);
        notifier.addListener(listener1);
View Full Code Here

TOP

Related Classes of org.impalaframework.module.transition.DefaultModuleStateChangeNotifier

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.