Examples of TestAction


Examples of org.apache.struts2.dojo.TestAction

        verify(SubmitAjaxTest.class.getResource("submit-ajax-1.txt"));
    }

    public void testButton() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        SubmitTag tag = new SubmitTag();
        tag.setPageContext(pageContext);

        tag.setId("a");
View Full Code Here

Examples of org.apache.struts2.dojo.TestAction

        verify(SubmitAjaxTest.class.getResource("submit-ajax-2.txt"));
    }

    public void testImage() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        SubmitTag tag = new SubmitTag();
        tag.setPageContext(pageContext);

        tag.setId("a");
View Full Code Here

Examples of org.apache.struts2.dojo.TestAction

/**
*/
public class AnchorTest extends AbstractUITagTest {

    public void testSimple() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        AnchorTag tag = new AnchorTag();
        tag.setPageContext(pageContext);

        tag.setId("mylink");
View Full Code Here

Examples of org.apache.struts2.dojo.TestAction

import org.apache.struts2.dojo.TestAction;

public class BindTest extends AbstractUITagTest {
    public void testAll() throws Exception {
        TestAction testAction = (TestAction) action;
        testAction.setFoo("bar");

        BindTag tag = new BindTag();
        tag.setPageContext(pageContext);

        tag.setId("a");
View Full Code Here

Examples of org.erlide.ui.editors.erl.test.TestAction

    private void setupTestAction() {
        if (testAction != null) {
            return;
        }
        testAction = new TestAction(ErlangEditorMessages.getBundleForConstructedKeys(),
                "Test.", this, getModule());
        testAction.setActionDefinitionId(IErlangEditorActionDefinitionIds.TEST);
        setAction("Test", testAction);
        markAsStateDependentAction("Test", true);
        markAsSelectionDependentAction("Test", true);
View Full Code Here

Examples of org.gatein.pc.test.unit.TestAction

      //
      if (portletTestCase != null)
      {
         //
         TestAction action = portletTestCase.getAction(ctx.getRequestCount(), NodeId.locate(), actionJoinPoint);

         //
         DriverResponse response;
         if (action instanceof PortletTestAction)
         {
            log.debug("Found action for jointpoint " + actionJoinPoint + " : " + action);

            //
            response = ((PortletTestAction)action).execute(this, req, resp, ctx);
         }
         else if (action instanceof PortletActionTestAction)
         {
            log.debug("Found action for jointpoint " + actionJoinPoint + " : " + action);

            //
            response = ((PortletActionTestAction)action).execute(this, req, resp, ctx);
         }
         else
         {
            response = new FailureResponse(Failure.createAssertionFailure("Action for " + ctx.getRequestCount() +
               " " + NodeId.locate() + " " + actionJoinPoint + " does not have the right type but has the type " +
               action.getClass().getName()));
         }

         //
         if (response != null)
         {
View Full Code Here

Examples of org.nanocontainer.nanowar.TestAction

*/
public class PicoRequestProcessorTestCase extends AbstractActionTestCase {

    public void testProcessActionCreate() throws IOException {
        PicoRequestProcessor requestProcessor = new PicoRequestProcessor();
        TestAction action = (TestAction) requestProcessor.processActionCreate(request, response, mapping);
        assertNotNull(action);
        assertSame(service, action.getService());
    }
View Full Code Here

Examples of org.nanocontainer.nanowar.webwork.TestAction

        requestMock.expects(atLeastOnce()).method("getAttribute").with(eq(KeyConstants.REQUEST_CONTAINER)).will(
                returnValue(container));
        requestMock.expects(atLeastOnce()).method("setAttribute").with(eq(KeyConstants.ACTIONS_CONTAINER),
                isA(MutablePicoContainer.class));
    container.registerComponentInstance("foo");
    TestAction action = (TestAction) factory
        .buildBean("org.nanocontainer.nanowar.webwork.TestAction");
    assertNotNull(action);
    assertEquals("foo", action.getFoo());
  }
View Full Code Here

Examples of org.springframework.webflow.execution.TestAction

  public void testResumeViewStateForEventStateNotExitedNonAjax() {
    Flow flow = new Flow("myFlow");
    StubViewFactory viewFactory = new StubViewFactory();
    ViewState state = new ViewState(flow, "viewState", viewFactory);
    Transition t = new Transition(on("submit"), null);
    TestAction action = new TestAction();
    t.setExecutionCriteria(new ActionTransitionCriteria(action));
    state.getTransitionSet().add(t);
    MockRequestControlContext context = new MockRequestControlContext(flow);
    state.enter(context);
    context = new MockRequestControlContext(context.getFlowExecutionContext());
    context.putRequestParameter("_eventId", "submit");
    state.resume(context);
    assertTrue(context.getFlowExecutionContext().isActive());
    assertEquals(1, action.getExecutionCount());
    assertTrue(context.getMockExternalContext().getFlowExecutionRedirectRequested());
  }
View Full Code Here

Examples of org.strecks.controller.impl.TestAction

  public void testHandleActionPerform() throws Exception
  {

    ControllerAction action = createStrictMock(ControllerAction.class);
    HttpServletRequest request = createStrictMock(HttpServletRequest.class);
    TestAction actionBean = createStrictMock(TestAction.class);
    ActionBeanSource beanSource = createStrictMock(ActionBeanSource.class);

    ActionContext actionContext = new TestContextImpl(request);

    // check the expected order of method invocation
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.