mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Fix failed unit test
This commit is contained in:
parent
43ce9f796f
commit
3048e0f385
@ -34,8 +34,18 @@ public class ReceiptPredicatesTest {
|
||||
|
||||
@Test
|
||||
public void testIsSepaRelated() {
|
||||
assertTrue(predicates.isSepaRelated(mock(Offer.class), mock(SepaInstantAccount.class)));
|
||||
assertTrue(predicates.isSepaRelated(mock(Offer.class), mock(SepaAccount.class)));
|
||||
Offer offer = mock(Offer.class);
|
||||
PaymentMethod.SEPA = mock(PaymentMethod.class);
|
||||
when(offer.getPaymentMethod()).thenReturn(PaymentMethod.SEPA);
|
||||
|
||||
assertTrue(predicates.isSepaRelated(offer, mock(SepaInstantAccount.class)));
|
||||
assertTrue(predicates.isSepaRelated(offer, mock(SepaAccount.class)));
|
||||
|
||||
PaymentMethod.SEPA_INSTANT = mock(PaymentMethod.class);
|
||||
when(offer.getPaymentMethod()).thenReturn(PaymentMethod.SEPA_INSTANT);
|
||||
|
||||
assertTrue(predicates.isSepaRelated(offer, mock(SepaInstantAccount.class)));
|
||||
assertTrue(predicates.isSepaRelated(offer, mock(SepaAccount.class)));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user