Package org.strecks.context.impl

Examples of org.strecks.context.impl.TestContextImpl


    replay(actionBean);
    replay(mapping);
    replay(request);

    ViewAdapter viewAdapter = action.executeAction(actionBean, new TestContextImpl(request, null, null, null,
        mapping));
    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() == actionForward);

    verify(actionBean);
View Full Code Here


    replay(response);

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

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

    verify(response);

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

    replay(request);

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

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

    verify(request);

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

    replay(request);

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

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

    verify(request);

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

    replay(request);

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

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

    verify(request);

  }
View Full Code Here

    replay(actionBean);
    replay(mapping);
    replay(request);

    ViewAdapter viewAdapter = action.executeAction(actionBean, new TestContextImpl(request, null, null, null,
        mapping));
    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() == actionForward);

    verify(actionBean);
View Full Code Here

    replay(actionBean);
    replay(mapping);
    replay(request);

    ViewAdapter viewAdapter = action.executeAction(actionBean, new TestContextImpl(request, null, null, null,
        mapping));
    ActionForwardViewAdapter va = (ActionForwardViewAdapter) viewAdapter;
    assert (va.getActionForward() == actionForward);

    verify(actionBean);
View Full Code Here

    replay(mapping);
    replay(request);

    try
    {
      action.executeAction(actionBean, new TestContextImpl(request, null, null, null, mapping));
    }
    catch (ApplicationConfigurationException e)
    {
      Assert
          .assertEquals(e.getMessage(),
View Full Code Here

    replay(request);

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

    inputWrapper.inject(action, new TestContextImpl(request));

    inputWrapper = inputs.get("convertedLongInput");

    inputWrapper.inject(action, new TestContextImpl(request));

    verify(request);

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

    replay(mapping);

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

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

    verify(mapping);

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

TOP

Related Classes of org.strecks.context.impl.TestContextImpl

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.