polish
This commit is contained in:
parent
522bb6ee56
commit
35944af7e1
|
|
@ -235,7 +235,8 @@ public class JodaTimeFormattingTests {
|
||||||
assertEquals("2009-10-31T07:00:00.000-05:00", binder.getBindingResult().getFieldValue("isoDateTime"));
|
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;
|
private LocalDate localDate;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,9 +73,15 @@ public class NumberFormattingTests {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testPatternFormatting() {
|
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;
|
private Integer numberDefault;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue