mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Adjust create transferwise acct test
A new acct now has no default trade currencies. Also fixed imports to not mix jupiter and junit asserts.
This commit is contained in:
parent
df1461c0d7
commit
d08dfb5f5f
1 changed files with 9 additions and 3 deletions
|
@ -65,9 +65,12 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||||
|
|
||||||
import static bisq.apitest.Scaffold.BitcoinCoreApp.bitcoind;
|
import static bisq.apitest.Scaffold.BitcoinCoreApp.bitcoind;
|
||||||
import static bisq.apitest.config.BisqAppConfig.alicedaemon;
|
import static bisq.apitest.config.BisqAppConfig.alicedaemon;
|
||||||
import static bisq.core.locale.CurrencyUtil.*;
|
import static bisq.core.locale.CurrencyUtil.getAllAdvancedCashCurrencies;
|
||||||
|
import static bisq.core.locale.CurrencyUtil.getAllMoneyGramCurrencies;
|
||||||
|
import static bisq.core.locale.CurrencyUtil.getAllRevolutCurrencies;
|
||||||
|
import static bisq.core.locale.CurrencyUtil.getAllUpholdCurrencies;
|
||||||
import static bisq.core.payment.payload.PaymentMethod.*;
|
import static bisq.core.payment.payload.PaymentMethod.*;
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
import static org.junit.jupiter.api.Assertions.fail;
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
import static org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
|
import static org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
|
||||||
|
|
||||||
|
@ -746,7 +749,10 @@ public class CreatePaymentAccountTest extends AbstractPaymentAccountTest {
|
||||||
String jsonString = getCompletedFormAsJsonString();
|
String jsonString = getCompletedFormAsJsonString();
|
||||||
TransferwiseAccount paymentAccount = (TransferwiseAccount) createPaymentAccount(alicedaemon, jsonString);
|
TransferwiseAccount paymentAccount = (TransferwiseAccount) createPaymentAccount(alicedaemon, jsonString);
|
||||||
verifyUserPayloadHasPaymentAccountWithId(paymentAccount.getId());
|
verifyUserPayloadHasPaymentAccountWithId(paymentAccount.getId());
|
||||||
verifyAccountTradeCurrencies(getAllTransferwiseCurrencies(), paymentAccount);
|
// As per commit 88f26f93241af698ae689bf081205d0f9dc929fa
|
||||||
|
// Do not autofill all currencies by default but keep all unselected.
|
||||||
|
// verifyAccountTradeCurrencies(getAllTransferwiseCurrencies(), paymentAccount);
|
||||||
|
assertEquals(0, paymentAccount.getTradeCurrencies().size());
|
||||||
verifyCommonFormEntries(paymentAccount);
|
verifyCommonFormEntries(paymentAccount);
|
||||||
assertEquals(COMPLETED_FORM_MAP.get(PROPERTY_NAME_EMAIL), paymentAccount.getEmail());
|
assertEquals(COMPLETED_FORM_MAP.get(PROPERTY_NAME_EMAIL), paymentAccount.getEmail());
|
||||||
log.debug("Deserialized {}: {}", paymentAccount.getClass().getSimpleName(), paymentAccount);
|
log.debug("Deserialized {}: {}", paymentAccount.getClass().getSimpleName(), paymentAccount);
|
||||||
|
|
Loading…
Add table
Reference in a new issue