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

Ben Gunter closed STS-770.
--------------------------


> 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.
-
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