From 8ba96b0032f39943c46c80eca2bfbbd62c2123e7 Mon Sep 17 00:00:00 2001 From: Bernard Labno Date: Fri, 23 Mar 2018 15:22:22 +0100 Subject: [PATCH] Adjust Bch and Ella asset providers names. --- .../bch/{BchAddressValidator.java => BchAssetProvider.java} | 2 +- .../{EllaAddressValidator.java => EllaAssetProvider.java} | 2 +- .../services/bisq.core.payment.validation.AssetProvider | 4 ++-- ...BchAddressValidatorTest.java => BchAssetProviderTest.java} | 2 +- ...laAddressValidatorTest.java => EllaAssetProviderTest.java} | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) rename src/main/java/bisq/core/payment/validation/altcoins/bch/{BchAddressValidator.java => BchAssetProvider.java} (93%) rename src/main/java/bisq/core/payment/validation/altcoins/ella/{EllaAddressValidator.java => EllaAssetProvider.java} (92%) rename src/test/java/bisq/core/payment/validation/altcoins/bch/{BchAddressValidatorTest.java => BchAssetProviderTest.java} (92%) rename src/test/java/bisq/core/payment/validation/altcoins/ella/{EllaAddressValidatorTest.java => EllaAssetProviderTest.java} (92%) diff --git a/src/main/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidator.java b/src/main/java/bisq/core/payment/validation/altcoins/bch/BchAssetProvider.java similarity index 93% rename from src/main/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidator.java rename to src/main/java/bisq/core/payment/validation/altcoins/bch/BchAssetProvider.java index eb9064c6..d541aac7 100644 --- a/src/main/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidator.java +++ b/src/main/java/bisq/core/payment/validation/altcoins/bch/BchAssetProvider.java @@ -6,7 +6,7 @@ import org.bitcoinj.core.Address; import org.bitcoinj.core.AddressFormatException; -public class BchAddressValidator extends AbstractAssetProvider { +public class BchAssetProvider extends AbstractAssetProvider { @Override public String getCurrencyCode() { diff --git a/src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidator.java b/src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProvider.java similarity index 92% rename from src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidator.java rename to src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProvider.java index 3ab0edbd..ae84c21e 100644 --- a/src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidator.java +++ b/src/main/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProvider.java @@ -3,7 +3,7 @@ import bisq.core.payment.validation.AbstractAssetProvider; import bisq.core.util.validation.InputValidator; -public class EllaAddressValidator extends AbstractAssetProvider { +public class EllaAssetProvider extends AbstractAssetProvider { @Override public String getCurrencyCode() { diff --git a/src/main/resources/META-INF/services/bisq.core.payment.validation.AssetProvider b/src/main/resources/META-INF/services/bisq.core.payment.validation.AssetProvider index 1f9acb20..c31497bf 100644 --- a/src/main/resources/META-INF/services/bisq.core.payment.validation.AssetProvider +++ b/src/main/resources/META-INF/services/bisq.core.payment.validation.AssetProvider @@ -1,2 +1,2 @@ -bisq.core.payment.validation.altcoins.bch.BchAddressValidator -bisq.core.payment.validation.altcoins.ella.EllaAddressValidator +bisq.core.payment.validation.altcoins.bch.BchAssetProvider +bisq.core.payment.validation.altcoins.ella.EllaAssetProvider diff --git a/src/test/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidatorTest.java b/src/test/java/bisq/core/payment/validation/altcoins/bch/BchAssetProviderTest.java similarity index 92% rename from src/test/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidatorTest.java rename to src/test/java/bisq/core/payment/validation/altcoins/bch/BchAssetProviderTest.java index f8bab797..9568a228 100644 --- a/src/test/java/bisq/core/payment/validation/altcoins/bch/BchAddressValidatorTest.java +++ b/src/test/java/bisq/core/payment/validation/altcoins/bch/BchAssetProviderTest.java @@ -7,7 +7,7 @@ import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertTrue; -public class BchAddressValidatorTest extends AbstractAltcoinAddressValidatorTest { +public class BchAssetProviderTest extends AbstractAltcoinAddressValidatorTest { @Test public void testBCH() { diff --git a/src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidatorTest.java b/src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProviderTest.java similarity index 92% rename from src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidatorTest.java rename to src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProviderTest.java index 88719ab3..f118f453 100644 --- a/src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAddressValidatorTest.java +++ b/src/test/java/bisq/core/payment/validation/altcoins/ella/EllaAssetProviderTest.java @@ -7,7 +7,7 @@ import static junit.framework.TestCase.assertFalse; import static org.junit.Assert.assertTrue; -public class EllaAddressValidatorTest extends AbstractAltcoinAddressValidatorTest { +public class EllaAssetProviderTest extends AbstractAltcoinAddressValidatorTest { @Test public void testELLA() {