This commit is contained in:
Keith Donald 2009-11-11 19:00:52 +00:00
parent 522bb6ee56
commit 35944af7e1
2 changed files with 9 additions and 2 deletions

View File

@ -235,7 +235,8 @@ public class JodaTimeFormattingTests {
assertEquals("2009-10-31T07:00:00.000-05:00", binder.getBindingResult().getFieldValue("isoDateTime"));
}
public static class JodaTimeBean {
@SuppressWarnings("unused")
private static class JodaTimeBean {
private LocalDate localDate;

View File

@ -73,9 +73,15 @@ public class NumberFormattingTests {
@Test
public void testPatternFormatting() {
MutablePropertyValues propertyValues = new MutablePropertyValues();
propertyValues.addPropertyValue("pattern", "1,25.00");
binder.bind(propertyValues);
assertEquals(0, binder.getBindingResult().getErrorCount());
assertEquals("1,25.00", binder.getBindingResult().getFieldValue("pattern"));
}
public static class TestBean {
@SuppressWarnings("unused")
private static class TestBean {
private Integer numberDefault;