Skip to content

Commit

Permalink
Fix getArgumentAt in SISISTest
Browse files Browse the repository at this point in the history
After update of Mockito from 1.10.19 to 3.8.0 (see 11833f3)
testLoadPages did no longer compile as getArgumentAt was removed in Mockito 2.7.6 (see
mockito/mockito#945). Fixed by replacing with getArgument.
  • Loading branch information
StefRe committed May 25, 2021
1 parent 782bdef commit 8c215f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testLoadPages() throws IOException, OpacApi.OpacErrorException, JSON

doAnswer(invocation -> {
String accountBase = "https://opac.erfurt.de/webOPACClient/userAccount.do?";
String url = invocation.getArgumentAt(0, String.class);
String url = invocation.getArgument(0);
if (url.equals(accountBase + "methodToCall=showAccount&typ=1")) {
return html;
} else if (url
Expand Down

0 comments on commit 8c215f5

Please sign in to comment.