SWF-1432 Make sure content type is set when sending a redirect instruction during JSF Ajax request

This commit is contained in:
Rossen Stoyanchev
2010-12-03 14:51:45 +00:00
parent a3b696e7a6
commit 8a4038ac13
4 changed files with 3 additions and 14 deletions

View File

@@ -26,6 +26,7 @@ public class JsfAjaxHandlerTests extends TestCase {
assertEquals(
"<?xml version='1.0' encoding='utf-8'?>\n<partial-response><redirect url=\"/target\"/></partial-response>",
jsfMock.contentAsString());
assertEquals("application/xml", jsfMock.response().getContentType());
}
}