[ 
http://www.stripesframework.org/jira/browse/STS-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-765.
--------------------------


> MockHttpServletResponse.sendRedirect() does not set proper status code
> ----------------------------------------------------------------------
>
>                 Key: STS-765
>                 URL: http://www.stripesframework.org/jira/browse/STS-765
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5.2
>            Reporter: Janne Jalkanen
>            Priority: Minor
>             Fix For: Release 1.5.4
>
>
> For example, doing the following unit test fails:
> {code}
>     MockRoundtrip trip = newTrip(RedirectionActionBean.class);
>     trip.setParameter("url", "http://www.redirected.com"; );
>     trip.execute();
>     assertEquals( "Not a redirection", 302, trip.getResponse().getStatus() ); 
>            // Returns 200, not 30x.
> {code}
> newTrip() is just a wrapper around building a MockRoundTrip.
> RedirectionActionBean essentially returns a RedirectResolution(url,false).
> Minor problem, but does make testing redirections a bit of a hassle.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to