Fixing the build, stupid java.util.Date

This commit is contained in:
Arjen Poutsma 2009-06-30 09:05:56 +00:00
parent f289b0ff15
commit ca97981d52
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}