提交 35944af7 编写于 作者: K Keith Donald

polish

上级 522bb6ee
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册