fixed failing tests due to generic object to object converter fallback being over eager

This commit is contained in:
Keith Donald
2009-11-12 06:57:51 +00:00
parent c58378603a
commit 70fe75384d
8 changed files with 75 additions and 57 deletions

View File

@@ -92,7 +92,6 @@ public class FormattingConversionServiceTests {
}
});
formattingService.addFormatterForFieldAnnotation(new DateTimeFormatAnnotationFormatterFactory());
System.out.println(this.formattingService);
String formatted = (String) formattingService.convert(new LocalDate(2009, 10, 31).toDateTimeAtCurrentTime()
.toDate(), new TypeDescriptor(Model.class.getField("date")), TypeDescriptor.valueOf(String.class));
assertEquals("10/31/09", formatted);