Skip to content

Commit

Permalink
fixed files form Mockito #24
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent e1d2e83 commit ca96496
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Object answer(InvocationOnMock invocation) {
//see issue 184.
//mocks by default should return 0 if references are the same, otherwise some other value because they are not the same. Hence we return 1 (anything but 0 is good).
//Only for compareTo() method by the Comparable interface
return 1;
return invocation.getMock() == invocation.getArguments()[0] ? 0 : 1;
}

Class<?> returnType = invocation.getMethod().getReturnType();
Expand Down

0 comments on commit ca96496

Please sign in to comment.