Skip to content

Commit

Permalink
Refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
luontola committed May 19, 2014
1 parent d5b822f commit 2e9ecf3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ Callable<String> childRef() {
assertThat(child.getClass().getDeclaredMethod(name), is(notNullValue()));
assertThat(child.getClass().getSuperclass().getDeclaredMethod(name), is(notNullValue()));

Callable<String> ref1 = child.childRef();
assertThat(ref1.call(), is("child version"));
assertThat(child.privateMethod(), is("child version"));
assertThat(child.childRef().call(), is("child version"));

Callable<String> ref2 = child.parentRef();
assertThat(ref2.call(), is("parent version"));
assertThat(((Parent) child).privateMethod(), is("parent version"));
assertThat(child.parentRef().call(), is("parent version"));
}
}

Expand Down

0 comments on commit 2e9ecf3

Please sign in to comment.