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:
Arjen Poutsma
2009-06-30 09:05:56 +00:00
parent f9eba72b26
commit d8f28cb3da
@@ -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());
}
}