Skip to content

Commit

Permalink
Improved test to double-check that the bridge method is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
luontola committed Mar 28, 2014
1 parent 68c1503 commit 7bc1cba
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public String foo() {
return "foo";
}
}
assertThat(new Foo().foo(), is("foo"));
assertThat("direct call", new Foo().foo(), is("foo"));
assertThat("bridged call", ((Parent) new Foo()).foo(), is((Object) "foo"));
}

public interface Parent {
Expand Down

0 comments on commit 7bc1cba

Please sign in to comment.