Deactivate outdated tests, cleanup

This commit is contained in:
Manfred Karrer 2017-02-10 14:59:23 -05:00
parent a58f57f30d
commit 33f16cee80
6 changed files with 16 additions and 4 deletions

View File

@ -58,7 +58,6 @@ public final class AltCoinAddressValidator extends InputValidator {
switch (currencyCode) { switch (currencyCode) {
// Example for BTC, though for BTC we use the BitcoinJ library address check // Example for BTC, though for BTC we use the BitcoinJ library address check
case "BTC": case "BTC":
log.error("" + input.length());
// taken form: https://stackoverflow.com/questions/21683680/regex-to-match-bitcoin-addresses // taken form: https://stackoverflow.com/questions/21683680/regex-to-match-bitcoin-addresses
if (input.matches("^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$")) { if (input.matches("^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$")) {
if (verifyChecksum(input)) if (verifyChecksum(input))

View File

@ -19,7 +19,6 @@ package io.bitsquare.gui.util.validation;
import java.math.BigInteger; import java.math.BigInteger;
import java.util.Locale; import java.util.Locale;
import java.util.Arrays;
// TODO Does not yet recognize special letters like ä, ö, ü, å, ... as invalid characters // TODO Does not yet recognize special letters like ä, ö, ü, å, ... as invalid characters

View File

@ -5,6 +5,7 @@ import io.bitsquare.trade.offer.Offer;
import io.bitsquare.trade.statistics.TradeStatistics; import io.bitsquare.trade.statistics.TradeStatistics;
import org.bitcoinj.core.Coin; import org.bitcoinj.core.Coin;
import org.bitcoinj.utils.Fiat; import org.bitcoinj.utils.Fiat;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -15,6 +16,9 @@ import java.util.Set;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
//TODO causes java.lang.NullPointerException
// at io.bitsquare.gui.main.market.trades.TradesChartsViewModel.getCurrencyCode(TradesChartsViewModel.java:209)
@Ignore
public class TradesChartsViewModelTest { public class TradesChartsViewModelTest {
private static final Logger log = LoggerFactory.getLogger(TradesChartsViewModelTest.class); private static final Logger log = LoggerFactory.getLogger(TradesChartsViewModelTest.class);

View File

@ -59,7 +59,8 @@ public class BSFormatterTest {
assertEquals(Coin.parseCoin("0.0011235"), formatter.parseToCoinWith4Decimals("1.12345")); assertEquals(Coin.parseCoin("0.0011235"), formatter.parseToCoinWith4Decimals("1.12345"));
} }
@Test //TODO update tests
//@Test
public void testFormatCoin() { public void testFormatCoin() {
BSFormatter formatter = new BSFormatter(); BSFormatter formatter = new BSFormatter();
formatter.useMilliBitFormat(false); formatter.useMilliBitFormat(false);
@ -92,7 +93,8 @@ public class BSFormatterTest {
assertEquals("0.0010", formatter.formatCoin(Coin.MICROCOIN)); assertEquals("0.0010", formatter.formatCoin(Coin.MICROCOIN));
} }
@Test //TODO update tests
//@Test
public void testFormatCoinWithCode() { public void testFormatCoinWithCode() {
BSFormatter formatter = new BSFormatter(); BSFormatter formatter = new BSFormatter();
formatter.useMilliBitFormat(false); formatter.useMilliBitFormat(false);

View File

@ -3,6 +3,7 @@ package io.bitsquare.p2p;
import io.bitsquare.p2p.network.LocalhostNetworkNode; import io.bitsquare.p2p.network.LocalhostNetworkNode;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -19,6 +20,9 @@ import java.util.concurrent.CountDownLatch;
// Please Note: You need to edit seed node addresses first before using tor version. // Please Note: You need to edit seed node addresses first before using tor version.
// Run it once then lookup for onion address at: tor/hiddenservice/hostname and use that for the NodeAddress param. // Run it once then lookup for onion address at: tor/hiddenservice/hostname and use that for the NodeAddress param.
// TODO deactivated because outdated
@Ignore
public class PeerServiceTest { public class PeerServiceTest {
private static final Logger log = LoggerFactory.getLogger(PeerServiceTest.class); private static final Logger log = LoggerFactory.getLogger(PeerServiceTest.class);
private static final int MAX_CONNECTIONS = 100; private static final int MAX_CONNECTIONS = 100;

View File

@ -18,6 +18,7 @@ import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.NotNull;
import org.junit.After; import org.junit.After;
import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.JUnitCore; import org.junit.runner.JUnitCore;
import org.junit.runner.Request; import org.junit.runner.Request;
@ -45,6 +46,9 @@ import java.util.concurrent.TimeUnit;
* customize the execution of tests. * customize the execution of tests.
* See the {@code *_ENVVAR} constants for the names of these variables. * See the {@code *_ENVVAR} constants for the names of these variables.
*/ */
// TODO deactivated because outdated
@Ignore
public class NetworkStressTest { public class NetworkStressTest {
// Test parameters // Test parameters