Package de.arago.portlet

Examples of de.arago.portlet.EventDispatcher.dispatch()


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

    @Test
    public void testDispatch() {
        EventDispatcher a = new EventDispatcher(EventDispatcherTest.class);
View Full Code Here


    @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
Copyright © 2018 www.massapi.com. 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.