mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 14:09:25 +00:00
Fixing the build, stupid java.util.Date
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1450 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+2
-2
@@ -982,7 +982,7 @@ public class ServletAnnotationControllerTests {
|
||||
request.setCookies(new Cookie("date", "2008-11-18"));
|
||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||
servlet.service(request, response);
|
||||
assertEquals("test-1226962800000", response.getContentAsString());
|
||||
assertEquals("test-108", response.getContentAsString());
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -1706,7 +1706,7 @@ public class ServletAnnotationControllerTests {
|
||||
public void handle(@CookieValue("date") Date date, Writer writer)
|
||||
throws IOException {
|
||||
assertEquals("Invalid path variable value", new Date(108, 10, 18), date);
|
||||
writer.write("test-" + date.getTime());
|
||||
writer.write("test-" + date.getYear());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user