We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b822f commit 2e9ecf3Copy full SHA for 2e9ecf3
end-to-end-tests/src/test/java/net/orfjackal/retrolambda/test/LambdaTest.java
@@ -204,11 +204,11 @@ Callable<String> childRef() {
204
assertThat(child.getClass().getDeclaredMethod(name), is(notNullValue()));
205
assertThat(child.getClass().getSuperclass().getDeclaredMethod(name), is(notNullValue()));
206
207
- Callable<String> ref1 = child.childRef();
208
- assertThat(ref1.call(), is("child version"));
+ assertThat(child.privateMethod(), is("child version"));
+ assertThat(child.childRef().call(), is("child version"));
209
210
- Callable<String> ref2 = child.parentRef();
211
- assertThat(ref2.call(), is("parent version"));
+ assertThat(((Parent) child).privateMethod(), is("parent version"));
+ assertThat(child.parentRef().call(), is("parent version"));
212
}
213
214
0 commit comments