Skip to content

Commit 2e9ecf3

Browse files
committed
Refactored
1 parent d5b822f commit 2e9ecf3

File tree

1 file changed

+4
-4
lines changed
  • end-to-end-tests/src/test/java/net/orfjackal/retrolambda/test

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ Callable<String> childRef() {
204204
assertThat(child.getClass().getDeclaredMethod(name), is(notNullValue()));
205205
assertThat(child.getClass().getSuperclass().getDeclaredMethod(name), is(notNullValue()));
206206

207-
Callable<String> ref1 = child.childRef();
208-
assertThat(ref1.call(), is("child version"));
207+
assertThat(child.privateMethod(), is("child version"));
208+
assertThat(child.childRef().call(), is("child version"));
209209

210-
Callable<String> ref2 = child.parentRef();
211-
assertThat(ref2.call(), is("parent version"));
210+
assertThat(((Parent) child).privateMethod(), is("parent version"));
211+
assertThat(child.parentRef().call(), is("parent version"));
212212
}
213213
}
214214

0 commit comments

Comments
 (0)