[
http://www.stripesframework.org/jira/browse/STS-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter updated STS-770:
---------------------------
Fix Version/s: Release 1.5.4
> MockHttpServletResponse.setContentType() does not set proper HTTP headers
> -------------------------------------------------------------------------
>
> Key: STS-770
> URL: http://www.stripesframework.org/jira/browse/STS-770
> Project: Stripes
> Issue Type: Bug
> Affects Versions: Release 1.5.3
> Reporter: Janne Jalkanen
> Priority: Minor
> Fix For: Release 1.5.4
>
>
> Expected:
> ActionBean calls response.setContentType("image/jpeg"). Unit test
> assertEquals("image/jpeg",
> trip.getResponse().getHeaderMap().get("Content-Type").get(0)) passes.
> What happens: NullPointerException.
> Solution: MockHttpServletResponse.setContentType() should also set the
> Content-Type header.
> Workaround: use response.getContentType() [which of course does not check
> that the actual HTTP headers are correct.]
> Stripes works ok when ActionBean is subjected to harsh reality, but testing
> is a bit hard :-).
--
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