Skip to content

Commit

Permalink
Fix UnnecessaryStubbingException in test
Browse files Browse the repository at this point in the history
Remove duplicate call to a stubbed method. This caused an
UnnecessaryStubbingException with Mockito's strict validation settings.
  • Loading branch information
cd2357 committed May 7, 2020
1 parent e3b3afb commit 222e8d5
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ public void testIsValidWhenNationalBankAccount() {
when(predicates.isEqualPaymentMethods(offer, account)).thenReturn(true);
when(predicates.isMatchingCountryCodes(offer, account)).thenReturn(true);
when(predicates.isMatchingSepaOffer(offer, account)).thenReturn(false);
when(predicates.isMatchingSepaOffer(offer, account)).thenReturn(false);
when(predicates.isMatchingSepaInstant(offer, account)).thenReturn(false);
when(predicates.isOfferRequireSameOrSpecificBank(offer, account)).thenReturn(false);

Expand Down

0 comments on commit 222e8d5

Please sign in to comment.