WW-2335 Using the computed value for content length instead of the hardcoded value, as it is done in the other test methods.

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@597674 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nils-Helge Garli
2007-11-23 14:41:32 +00:00
parent 1382694b0e
commit 2788ac9ab5
@@ -81,14 +81,14 @@ public class StreamResultTest extends StrutsTestCase {
result.doExecute("helloworld", mai);
assertEquals("1185", result.getContentLength());
assertEquals(String.valueOf(contentLength), result.getContentLength());
assertEquals("text/plain", result.getContentType());
assertEquals("streamForImage", result.getInputName());
assertEquals(1024, result.getBufferSize()); // 1024 is default
assertEquals("inline", result.getContentDisposition());
assertEquals("text/plain", response.getContentType());
assertEquals(1185, response.getContentLength());
assertEquals(contentLength, response.getContentLength());
assertEquals("inline", response.getHeader("Content-disposition"));
}