mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
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:
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user