Package de.arago.portlet

Examples of de.arago.portlet.EventDispatcher


    public void tearDown() {
    }

    @Test
    public void testLoad() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
        assertEquals("de.arago.data.test.event.", a.getNamespace());
    }
View Full Code Here


        assertEquals("de.arago.data.test.event.", a.getNamespace());
    }

    @Test
    public void testDispatchDoesNotExist() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
        Map<Object,Object> data = new HashMap<Object,Object>();
        a.dispatch("testEventDoesNotExist", new TestDataWrapper(data));
    }
View Full Code Here

        a.dispatch("testEventDoesNotExist", new TestDataWrapper(data));
    }

    @Test
    public void testDispatch() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
        Map<Object,Object> data = new HashMap<Object,Object>();
        a.dispatch("DispatcherTestEvent", new TestDataWrapper(data));
        assertEquals("event executed", data.get("ok"));
    }
View Full Code Here

TOP

Related Classes of de.arago.portlet.EventDispatcher

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.