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
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.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development