mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
Merge pull request #552 from apache/WW-5165-upgrade-spring
[WW-5165] Upgrades Spring to version 5.3.20
This commit is contained in:
@@ -242,6 +242,16 @@
|
||||
<artifactId>spring-web</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-context-support</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
||||
@@ -58,7 +58,7 @@ public class PlainResultTest extends StrutsInternalTestCase {
|
||||
result.execute(invocation);
|
||||
|
||||
assertEquals("{ 'value': 'test' }", response.getContentAsString());
|
||||
assertEquals("application/json", response.getContentType());
|
||||
assertEquals("application/json;charset=UTF-8", response.getContentType());
|
||||
}
|
||||
|
||||
public void testWriteContentTypeCsvWithCookie() throws Exception {
|
||||
@@ -72,7 +72,7 @@ public class PlainResultTest extends StrutsInternalTestCase {
|
||||
result.execute(invocation);
|
||||
|
||||
assertEquals("name;value\nline;1\nline;2", response.getContentAsString());
|
||||
assertEquals("text/csv", response.getContentType());
|
||||
assertEquals("text/csv;charset=UTF-8", response.getContentType());
|
||||
}
|
||||
|
||||
public void testHeaders() throws Exception {
|
||||
@@ -146,4 +146,4 @@ public class PlainResultTest extends StrutsInternalTestCase {
|
||||
|
||||
ActionContext.getContext().withServletResponse(response).withActionInvocation(invocation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user