Package de.arago.portlet

Examples of de.arago.portlet.ActionDispatcher


        }
    }

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


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

    @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");
    }
View Full Code Here

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

    @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

Related Classes of de.arago.portlet.ActionDispatcher

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.