Package net.sourceforge.stripes.action

Examples of net.sourceforge.stripes.action.ActionBeanContext


                getClass().getClassLoader(),
                new Class<?>[] { HttpServletResponse.class },
                new FlashResponseInvocationHandler());
        for (Object o : this.values()) {
            if (o instanceof ActionBean) {
                ActionBeanContext context = ((ActionBean) o).getContext();
                if (context != null) {
                    context.setRequest(flashRequest);
                    context.setResponse(flashResponse);
                }
            }
        }

        // start timer, clear request
View Full Code Here


            // Get the flash scope ID from the redirect URL and add it back as a parameter
            trip3.addParameter(StripesConstants.URL_KEY_FLASH_SCOPE_ID, id);
            trip3.execute("FlashBean");

            try {
                ActionBeanContext tmp = trip3.getActionBean(getClass()).getContext();
                HttpServletResponse response = tmp.getResponse();
                HttpServletRequest request = tmp.getRequest();
                Assert.assertNotNull(request);
                Assert.assertNotNull(response);
                Assert.assertTrue(Proxy.class.isAssignableFrom(response.getClass()));
                Assert.assertEquals(StripesRequestWrapper.class, request.getClass());
                response.isCommitted();
View Full Code Here

        trip.addParameter("context.eventName", "woohaa!");
        trip.addParameter(" context.eventName", "woohaa!");
        trip.execute();

        TestActionBean bean = trip.getActionBean(TestActionBean.class);
        ActionBeanContext context = bean.getContext();
        Assert.assertFalse("woohaa!".equals(context.getEventName()));
    }
View Full Code Here

        trip.addParameter("Context.eventName", "woohaa!");
        trip.addParameter(" Context.eventName", "woohaa!");
        trip.execute();

        TestActionBean bean = trip.getActionBean(TestActionBean.class);
        ActionBeanContext context = bean.getContext();
        Assert.assertFalse("woohaa!".equals(context.getEventName()));
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.action.ActionBeanContext

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.