From f9839936bcb3554bf050f080ab370cd864739263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=B6ser?= Date: Mon, 21 Mar 2016 09:55:53 +0100 Subject: [PATCH] Move test classes to test scope --- ...strictionTest.java => BCTransactionRestrictionTest.java} | 2 +- .../java/de/maltemoeser/bcgraph/testing/BitcoinTest.java | 0 .../maltemoeser/bcgraph/testing/BlockTransactionPair.java | 0 .../java/de/maltemoeser/bcgraph/testing/Neo4jTest.java | 0 .../java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java | 0 .../java/de/maltemoeser/bcgraph/testing/TestInjector.java | 0 .../java/de/maltemoeser/bcgraph/testing/TestUtils.java | 6 ------ .../java/de/maltemoeser/bcgraph/testing/TestUtilsTest.java | 2 -- 8 files changed, 1 insertion(+), 9 deletions(-) rename src/test/java/de/maltemoeser/bcgraph/restrictions/{TransactionRestrictionTest.java => BCTransactionRestrictionTest.java} (97%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/BitcoinTest.java (100%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/BlockTransactionPair.java (100%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/Neo4jTest.java (100%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java (100%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/TestInjector.java (100%) rename src/{main => test}/java/de/maltemoeser/bcgraph/testing/TestUtils.java (95%) diff --git a/src/test/java/de/maltemoeser/bcgraph/restrictions/TransactionRestrictionTest.java b/src/test/java/de/maltemoeser/bcgraph/restrictions/BCTransactionRestrictionTest.java similarity index 97% rename from src/test/java/de/maltemoeser/bcgraph/restrictions/TransactionRestrictionTest.java rename to src/test/java/de/maltemoeser/bcgraph/restrictions/BCTransactionRestrictionTest.java index 422722e..c4e34eb 100644 --- a/src/test/java/de/maltemoeser/bcgraph/restrictions/TransactionRestrictionTest.java +++ b/src/test/java/de/maltemoeser/bcgraph/restrictions/BCTransactionRestrictionTest.java @@ -8,7 +8,7 @@ import static org.junit.Assert.assertTrue; -public class TransactionRestrictionTest extends Neo4jTest { +public class BCTransactionRestrictionTest extends Neo4jTest { @Test public void testMinInputCountRestriction() { diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/BitcoinTest.java b/src/test/java/de/maltemoeser/bcgraph/testing/BitcoinTest.java similarity index 100% rename from src/main/java/de/maltemoeser/bcgraph/testing/BitcoinTest.java rename to src/test/java/de/maltemoeser/bcgraph/testing/BitcoinTest.java diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/BlockTransactionPair.java b/src/test/java/de/maltemoeser/bcgraph/testing/BlockTransactionPair.java similarity index 100% rename from src/main/java/de/maltemoeser/bcgraph/testing/BlockTransactionPair.java rename to src/test/java/de/maltemoeser/bcgraph/testing/BlockTransactionPair.java diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/Neo4jTest.java b/src/test/java/de/maltemoeser/bcgraph/testing/Neo4jTest.java similarity index 100% rename from src/main/java/de/maltemoeser/bcgraph/testing/Neo4jTest.java rename to src/test/java/de/maltemoeser/bcgraph/testing/Neo4jTest.java diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java b/src/test/java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java similarity index 100% rename from src/main/java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java rename to src/test/java/de/maltemoeser/bcgraph/testing/TestGraphUtils.java diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/TestInjector.java b/src/test/java/de/maltemoeser/bcgraph/testing/TestInjector.java similarity index 100% rename from src/main/java/de/maltemoeser/bcgraph/testing/TestInjector.java rename to src/test/java/de/maltemoeser/bcgraph/testing/TestInjector.java diff --git a/src/main/java/de/maltemoeser/bcgraph/testing/TestUtils.java b/src/test/java/de/maltemoeser/bcgraph/testing/TestUtils.java similarity index 95% rename from src/main/java/de/maltemoeser/bcgraph/testing/TestUtils.java rename to src/test/java/de/maltemoeser/bcgraph/testing/TestUtils.java index a8a7665..7c56c09 100644 --- a/src/main/java/de/maltemoeser/bcgraph/testing/TestUtils.java +++ b/src/test/java/de/maltemoeser/bcgraph/testing/TestUtils.java @@ -2,20 +2,14 @@ import org.apache.commons.io.FileUtils; import org.bitcoinj.core.Block; -import org.bitcoinj.core.Context; import org.bitcoinj.core.Transaction; import org.bitcoinj.core.TransactionOutput; import org.bitcoinj.params.MainNetParams; -import org.junit.Before; -import org.junit.Test; import java.io.File; import java.io.IOException; import java.util.NoSuchElementException; -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.junit.Assert.*; - public class TestUtils { public static final int TEST_BLOCK_HEIGHT = 350010; diff --git a/src/test/java/de/maltemoeser/bcgraph/testing/TestUtilsTest.java b/src/test/java/de/maltemoeser/bcgraph/testing/TestUtilsTest.java index 49c8c64..7c0d6aa 100644 --- a/src/test/java/de/maltemoeser/bcgraph/testing/TestUtilsTest.java +++ b/src/test/java/de/maltemoeser/bcgraph/testing/TestUtilsTest.java @@ -1,7 +1,5 @@ package de.maltemoeser.bcgraph.testing; -import de.maltemoeser.bcgraph.testing.BitcoinTest; -import de.maltemoeser.bcgraph.testing.TestUtils; import org.bitcoinj.core.Block; import org.bitcoinj.core.Transaction; import org.junit.Test;