Skip to content

Commit

Permalink
[playframework#1241] added bind methods back to BeanWrapper (Fixed te…
Browse files Browse the repository at this point in the history
…stcase for master)
  • Loading branch information
mbknor committed Nov 16, 2011
1 parent 32917d1 commit d6f0b31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions framework/test-src/play/data/binding/BeanWrapperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ public void testBind() throws Exception {
m.put("b.i", new String[]{"2"});

Bean b = new Bean();
new BeanWrapper(Bean.class).bind("b", null, m, "", b, null);
BeanWrapper.forClass(Bean.class).bind("b", null, m, "", b, null);
assertThat(b.a).isEqualTo("a1");
assertThat(b.b).isEqualTo("b1");
assertThat(b.i).isEqualTo(2);

b = new Bean();
new BeanWrapper(Bean.class).bind("", null, m, "b", b, null);
BeanWrapper.forClass(Bean.class).bind("", null, m, "b", b, null);
assertThat(b.a).isEqualTo("a1");
assertThat(b.b).isEqualTo("b1");
assertThat(b.i).isEqualTo(2);

b = (Bean)new BeanWrapper(Bean.class).bind("b", null, m, "", null);
b = (Bean)BeanWrapper.forClass(Bean.class).bind("b", null, m, "", null);
assertThat(b.a).isEqualTo("a1");
assertThat(b.b).isEqualTo("b1");
assertThat(b.i).isEqualTo(2);
Expand Down

0 comments on commit d6f0b31

Please sign in to comment.