diff --git a/core/src/test/java/bisq/core/account/witness/AccountAgeWitnessServiceTest.java b/core/src/test/java/bisq/core/account/witness/AccountAgeWitnessServiceTest.java index e3adb90fe9c..e0baf486644 100644 --- a/core/src/test/java/bisq/core/account/witness/AccountAgeWitnessServiceTest.java +++ b/core/src/test/java/bisq/core/account/witness/AccountAgeWitnessServiceTest.java @@ -62,6 +62,7 @@ import org.junit.Ignore; import org.junit.Test; +import static bisq.core.payment.payload.PaymentMethod.getPaymentMethodById; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; @@ -216,8 +217,8 @@ public void testArbitratorSignWitness() throws IOException { when(contract.getBuyerPaymentAccountPayload()).thenReturn(buyerPaymentAccountPayload); when(contract.getSellerPaymentAccountPayload()).thenReturn(sellerPaymentAccountPayload); when(contract.getOfferPayload()).thenReturn(mock(OfferPayload.class)); - List items = service.getTraderPaymentAccounts(now, PaymentMethod.SEPA, disputes); - assertEquals(items.size(), 2); + List items = service.getTraderPaymentAccounts(now, getPaymentMethodById(PaymentMethod.SEPA_ID), disputes); + assertEquals(2, items.size()); // Setup a mocked arbitrator key ECKey arbitratorKey = mock(ECKey.class);