Skip to content

Commit 7bc1cba

Browse files
committed
Improved test to double-check that the bridge method is not needed
1 parent 68c1503 commit 7bc1cba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

end-to-end-tests/src/test/java/net/orfjackal/retrolambda/test/DefaultMethodsTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public String foo() {
2525
return "foo";
2626
}
2727
}
28-
assertThat(new Foo().foo(), is("foo"));
28+
assertThat("direct call", new Foo().foo(), is("foo"));
29+
assertThat("bridged call", ((Parent) new Foo()).foo(), is((Object) "foo"));
2930
}
3031

3132
public interface Parent {

0 commit comments

Comments
 (0)