提交 80760ed7 编写于 作者: K Keith Donald

polish

上级 0c1c5fff
......@@ -112,7 +112,10 @@ public class GenericBinderTests {
@Test
public void bindSingleValuePropertyFormatterParseException() {
binder.addBinding("date").formatWith(new DateFormatter());
binder.bind(Collections.singletonMap("date", "bogus"));
BindingResults results = binder.bind(Collections.singletonMap("date", "bogus"));
assertEquals(1, results.size());
assertTrue(results.get(0).isFailure());
assertEquals("invalidFormat", results.get(0).getAlert().getCode());
}
@Test
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册