Examples of ActionContext

  • webwork.action.ActionContext

  • Examples of org.eurekastreams.commons.actions.context.ActionContext

                                    endIndex))));
                    will(returnValue(expectedReturnValue));
                }
            });

            Serializable returnValue = sut.execute(new ActionContext()
            {
                /**
                 * Serial version uid.
                 */
                private static final long serialVersionUID = -2804552268718221598L;
    View Full Code Here

    Examples of org.g4studio.core.mvc.xstruts.chain.contexts.ActionContext

        // Stash the exception in the specified context attribute
        if (LOG.isDebugEnabled()) {
          LOG.debug("Attempting to handle a thrown exception");
        }

        ActionContext actionCtx = (ActionContext) context;

        actionCtx.setException(exception);

        // Execute the specified command
        try {
          Command command = lookupExceptionCommand();
    View Full Code Here

    Examples of org.jrest4guice.dao.actions.ActionContext

        if (action == null) {
          String msg = "无法获取" + proxy.getClass() + "." + method.getName() + "方法声明的Action实例。";
          log.error(msg);
          throw new RejectedExecutionException(msg);
        } else {
          ActionContext context = action.getContext();
          context.setAction(action);
          return context.execute(method, args);
        }
      }
    View Full Code Here

    Examples of org.nutz.mvc.ActionContext

        root.add("/a/b/c", "A");
        root.add("/a/c/", "B");
        root.add("/a/f", "C");
        root.add("/a", "D");

        ActionContext ac = new ActionContext();
        assertEquals("A", root.get(ac, "/a/b/c"));
        assertEquals("/a/b/c", ac.getPath());

        assertEquals("B", root.get(ac, "/a/c"));
        assertEquals("/a/c", ac.getPath());

        assertEquals("C", root.get(ac, "/a/f/"));
        assertEquals("/a/f/", ac.getPath());

        assertEquals("D", root.get(ac, "/a/"));
        assertEquals("/a/", ac.getPath());

        assertNull(root.get(ac, "/a/x"));
        assertEquals("/a/x", ac.getPath());
      }
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        c.readAnnotations(action.getClass());
        Map<String, InjectionWrapper> inputs = c.getInjectionMap();
        InjectionWrapper inputWrapper = inputs.get("webHelper");

        ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);

        inputWrapper.inject(action, injectionContext);

        assert action.getWebHelper() != null;
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        replay(request);
        replay(redirectHelper);

        InjectionWrapper inputWrapper = inputs.get("redirectHelper");

        ActionContext injectionContext = new TestContextImpl(request);
        inputWrapper.inject(action, injectionContext);

        verify(request);
        verify(redirectHelper);
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        replay(request);
        replay(redirectHelper);

        InjectionWrapper inputWrapper = inputs.get("redirectHelper");

        ActionContext injectionContext = new TestContextImpl(request);
        inputWrapper.inject(action, injectionContext);

        verify(request);
        verify(redirectHelper);
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        Map<String, InjectionWrapper> injectionHandlers = c.getInjectionMap();
        ActionForm actionForm = new SimpleForm();

        InjectionWrapper inputWrapper = injectionHandlers.get("actionForm");

        ActionContext injectionContext = new TestContextImpl(actionForm, null);
        inputWrapper.inject(action, injectionContext);

        assert action.getActionForm() != null;
        assert action.getActionForm() == actionForm;
      }
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        ActionForm actionForm = new SimpleForm();
        DelegatingForm delegator = new DelegatingForm(actionForm);

        InjectionWrapper inputWrapper = injectionHandlers.get("actionForm");

        ActionContext injectionContext = new TestContextImpl(delegator, null);
        inputWrapper.inject(action, injectionContext);

        assert action.getActionForm() != null;
        assert action.getActionForm() == actionForm;
      }
    View Full Code Here

    Examples of org.strecks.context.ActionContext

        replay(moduleConfig);
        replay(messageResources);

        InjectionWrapper inputWrapper = inputs.get("namedHelper");

        ActionContext injectionContext = new TestContextImpl(request, null, context, null, null);
        inputWrapper.inject(action, injectionContext);
        MessageResourcesHelper namedHelper = action.getNamedHelper();
       
        namedHelper.getMessage("some.key");
       
    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.