Package de.arago.portlet

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


    @Test
    public void testDispatchDoesNotExist() throws IllegalAccessException {
        ActionDispatcher a            = new ActionDispatcher(ActionDispatcherTest.class);
        HashMap<Object, Object> data = new HashMap<Object, Object>();

        a.dispatch("testActionDoesNotExist", new TestDataWrapper(data));

        if (data.containsKey("testActionExecuted")) throw new IllegalAccessException("action was executed");
    }

    @Test
View Full Code Here


    @Test
    public void testDispatch() throws IllegalAccessException {
        ActionDispatcher a            = new ActionDispatcher(ActionDispatcherTest.class);
        HashMap<Object, Object> data = new HashMap<Object, Object>();

        a.dispatch("dispatcherTestAction", new TestDataWrapper(data));

        if (!data.containsKey("testActionExecuted")) throw new IllegalAccessException("action was not executed");
    }

}
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.