Package org.auraframework.def

Examples of org.auraframework.def.ControllerDef


                        "action_java://org.auraframework.impl.java.controller.TestController/ACTION$getString"));
    }

    @ThreadHostileTest("TestLoggingAdapter not thread-safe")
    public void testParamLogging_SelectParameters() throws Exception {
        ControllerDef controller = getJavaController("java://org.auraframework.impl.java.controller.JavaTestController");
        Map<String, Object> params = Maps.newHashMap();
        params.put("strparam", "BoogaBoo");
        params.put("intparam", 1);
        Action selectParamLoggingAction = controller.createAction("getSelectedParamLogging", params);
        List<Map<String, Object>> logs = runActionsAndReturnLogs(Lists.newArrayList(selectParamLoggingAction));
        assertEquals(1, logs.size());
        assertTrue(
                "Failed to log a server action and selected parameter assignment",
                logs.get(0)
View Full Code Here


                                "action_java://org.auraframework.impl.java.controller.JavaTestController/ACTION$getSelectedParamLogging{strparam,BoogaBoo}"));
    }

    @ThreadHostileTest("TestLoggingAdapter not thread-safe")
    public void testParamLogging_MultipleParameters() throws Exception {
        ControllerDef controller = getJavaController("java://org.auraframework.impl.java.controller.JavaTestController");
        Map<String, Object> params = Maps.newHashMap();
        params.put("we", "we");
        params.put("two", "two");
        Action selectParamLoggingAction = controller.createAction("getMultiParamLogging", params);
        List<Map<String, Object>> logs = runActionsAndReturnLogs(Lists.newArrayList(selectParamLoggingAction));
        assertEquals(1, logs.size());
        assertTrue(
                "Failed to log a server action and multiple params",
                logs.get(0)
View Full Code Here

TOP

Related Classes of org.auraframework.def.ControllerDef

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.