Browse Source

polish

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1497 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 17 years ago
parent
commit
4f68c6b893
  1. 5
      org.springframework.context/src/test/java/org/springframework/ui/binding/support/GenericBinderTests.java

5
org.springframework.context/src/test/java/org/springframework/ui/binding/support/GenericBinderTests.java

@ -112,7 +112,10 @@ public class GenericBinderTests { @@ -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

Loading…
Cancel
Save