@@ -0,0 +1,2037 @@
+/*%0A * This file is part of Bisq.%0A *%0A * Bisq is free software: you can redistribute it and/or modify it%0A * under the terms of the GNU Affero General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or (at%0A * your option) any later version.%0A *%0A * Bisq is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or%0A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public%0A * License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with Bisq. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apackage bisq.apitest.method.trade;%0A%0Aimport lombok.extern.slf4j.Slf4j;%0A%0Aimport org.junit.jupiter.api.BeforeAll;%0Aimport org.junit.jupiter.api.MethodOrderer;%0Aimport org.junit.jupiter.api.Order;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.TestMethodOrder;%0A%0A%0A%0Aimport bisq.apitest.method.offer.AbstractOfferTest;%0A%0A// @Disabled%0A@Slf4j%0A@TestMethodOrder(MethodOrderer.OrderAnnotation.class)%0Apublic class BsqSwapTradeTestLoop extends AbstractOfferTest %7B%0A%0A    @BeforeAll%0A    public static void setUp() %7B%0A        AbstractOfferTest.setUp();%0A        createBsqSwapBsqPaymentAccounts();%0A    %7D%0A%0A    @Test%0A    @Order(1)%0A    public void testGetBalancesBeforeTrade() %7B%0A        BsqSwapTradeTest test = new BsqSwapTradeTest();%0A        runTradeLoop(test);%0A    %7D%0A%0A    private void runTradeLoop(BsqSwapTradeTest test) %7B%0A        // TODO Fix wallet inconsistency bugs after 2nd trades.%0A        for (int tradeCount = 1; tradeCount %3C= 2; tradeCount++) %7B%0A            log.warn(%22================================ Trade # %7B%7D ================================%22, tradeCount);%0A            test.testGetBalancesBeforeTrade();%0A%0A            test.testAliceCreateBsqSwapBuyOffer();%0A            genBtcBlocksThenWait(1, 8000);%0A%0A            test.testBobTakesBsqSwapOffer();%0A            genBtcBlocksThenWait(1, 8000);%0A%0A            test.testGetBalancesAfterTrade();%0A        %7D%0A    %7D%0A%7D%0A

Add api test, Cleanup