Skip to content

Commit

Permalink
Upgrade JUnit 4 to JUnit5 Jupiter
Browse files Browse the repository at this point in the history
  • Loading branch information
napoly committed Mar 27, 2023
1 parent cf56ae3 commit c3b618e
Show file tree
Hide file tree
Showing 250 changed files with 1,456 additions and 1,489 deletions.
58 changes: 0 additions & 58 deletions apitest/src/test/java/bisq/apitest/JUnitHelper.java

This file was deleted.

4 changes: 2 additions & 2 deletions apitest/src/test/java/bisq/apitest/scenario/OfferTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

import lombok.extern.slf4j.Slf4j;

import org.junit.Ignore;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -84,7 +84,7 @@ public void testCreateOfferUsingMarketPriceMargin() {
test.testCreateUSDBTCBuyOfferWithTriggerPrice();
}

@Ignore
@Disabled
@Test
@Order(5)
public void testCreateBSQOffers() {
Expand Down
2 changes: 2 additions & 0 deletions assets/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ dependencies {
implementation libs.google.guava
implementation libs.apache.commons.lang3
implementation libs.slf4j.api
testImplementation libs.hamcrest
testImplementation libs.junit.jupiter.api
}
4 changes: 2 additions & 2 deletions assets/src/test/java/bisq/asset/AbstractAssetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

package bisq.asset;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.hamcrest.MatcherAssert.assertThat;

/**
* Abstract base class for all {@link Asset} unit tests. Subclasses must implement the
Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/ActiniumTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class ActiniumTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/AdeptioTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AdeptioTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/AeonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package bisq.asset.coins;

import bisq.asset.AbstractAssetTest;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AeonTest extends AbstractAssetTest {

Expand Down
4 changes: 2 additions & 2 deletions assets/src/test/java/bisq/asset/coins/AmitycoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AmitycoinTest extends AbstractAssetTest {

Expand All @@ -45,4 +45,4 @@ public void testInvalidAddresses() {
assertInvalidAddress("KEKlulzlksadfwe");
assertInvalidAddress("HOleeSheetdsdjqwqwpoo3");
}
}
}
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/AnimecoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AnimecoinTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/ArqmaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package bisq.asset.coins;

import bisq.asset.AbstractAssetTest;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class ArqmaTest extends AbstractAssetTest {

Expand Down
4 changes: 2 additions & 2 deletions assets/src/test/java/bisq/asset/coins/AskcoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AskcoinTest extends AbstractAssetTest {

Expand All @@ -45,4 +45,4 @@ public void testInvalidAddresses() {
assertInvalidAddress("null");
assertInvalidAddress("xidjfwi23ii0");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class AustraliacashTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BSQTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BSQTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BeamTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BeamTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BitDaricTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package bisq.asset.coins;
import bisq.asset.AbstractAssetTest;
import org.junit.Test;
import org.junit.jupiter.api.Test;
public class BitDaricTest extends AbstractAssetTest {
public BitDaricTest() {
super(new BitDaric());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BitcoinRhodiumTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BitcoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BitcoinTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BitmarkTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BitmarkTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BitzecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BitzecTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/BlurTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package bisq.asset.coins;

import bisq.asset.AbstractAssetTest;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BlurTest extends AbstractAssetTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;
import java.util.Collections;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class BurntBlackCoinTest extends AbstractAssetTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CRowdCLassicTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/CTSCoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CTSCoinTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/Cash2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
package bisq.asset.coins;

import bisq.asset.AbstractAssetTest;
import org.junit.Test;
import org.junit.jupiter.api.Test;

public class Cash2Test extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/ChauchaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class ChauchaTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/CloakCoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CloakCoinTest extends AbstractAssetTest {

Expand Down
4 changes: 2 additions & 2 deletions assets/src/test/java/bisq/asset/coins/CreditsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CreditsTest extends AbstractAssetTest {

Expand All @@ -43,4 +43,4 @@ public void testInvalidAddresses() {
assertInvalidAddress("CcbqU3MLZuGAED2CuhUkquyJxKaSJqv6V6#");
assertInvalidAddress("bKaig5pznaUgiLqe6WkoCNGagNMhNLtqhKkggg");
}
}
}
4 changes: 2 additions & 2 deletions assets/src/test/java/bisq/asset/coins/CroatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class CroatTest extends AbstractAssetTest {

Expand All @@ -35,7 +35,7 @@ public void testValidAddresses() {
}

@Test
public void testInvalidAddresses() {
public void testInvalidAddresses() {
assertInvalidAddress("ZsZ46x2mzB3GhjrC2Lt7oZ4Efmj8USUjVM7Bdz8B8EF6bQwN84NzSti7RwLZcFoZG5NR1iaiZY8GP2KwumVc1jGzHLvBzAv");
assertInvalidAddress("");
assertInvalidAddress("CjxZDcoWCsx1wmYkmJcFpSTgqpjoFGRW9dQT8JqgwvkBaU6Q3X4MJ4QjV#NUM7GHp6NjYaTrKeH4bSRTK3mCYsHf2818vzv");
Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DSTRATest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DSTRATest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DarkPayTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DarkPayTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DashTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DashTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DeepOnionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DeepOnionTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DextroTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DextroTest extends AbstractAssetTest {

Expand Down
2 changes: 1 addition & 1 deletion assets/src/test/java/bisq/asset/coins/DogecoinTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import bisq.asset.AbstractAssetTest;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class DogecoinTest extends AbstractAssetTest {

Expand Down
Loading

0 comments on commit c3b618e

Please sign in to comment.