Move BitcoinSUnitTest abstract class to the testkit project so it can be reused across our codebase (#375)

This commit is contained in:
Chris Stewart 2019-03-07 14:48:34 -06:00 committed by GitHub
parent 9fceb5266b
commit eaa87b1e2b
13 changed files with 15 additions and 12 deletions

View File

@ -1,6 +1,6 @@
package org.bitcoins.core.crypto
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scodec.bits.HexStringSyntax
import scala.util.{Failure, Try}

View File

@ -1,7 +1,7 @@
package org.bitcoins.core.crypto
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scodec.bits.ByteVector
/**

View File

@ -1,8 +1,8 @@
package org.bitcoins.core.crypto
import com.fasterxml.jackson.databind.JsonNode
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.testkit.util.BitcoinSUnitTest
import org.scalatest.Assertion
import play.api.libs.json._
import play.api.libs.json.jackson.JacksonJson

View File

@ -1,7 +1,7 @@
package org.bitcoins.core.crypto
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scodec.bits.ByteVector
import scala.concurrent.{ExecutionContext, Future}

View File

@ -1,6 +1,6 @@
package org.bitcoins.core.number
import org.bitcoins.testkit.core.gen.NumberGenerator
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
import org.scalatest.prop.PropertyChecks
class BasicArithmeticSpec extends BitcoinSUnitTest {

View File

@ -1,7 +1,7 @@
package org.bitcoins.core.protocol
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.core.gen.AddressGenerator
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scala.util.{Failure, Success}

View File

@ -6,8 +6,9 @@ import org.bitcoins.core.number.{UInt5, UInt8}
import org.bitcoins.core.protocol.ln.LnHumanReadablePart
import org.bitcoins.core.protocol.ln.currency.PicoBitcoins
import org.bitcoins.core.protocol.script._
import org.bitcoins.core.util.{Bech32, BitcoinSUnitTest}
import org.bitcoins.core.util.Bech32
import org.bitcoins.testkit.core.gen.NumberGenerator
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scala.util.{Failure, Success}

View File

@ -3,7 +3,7 @@ package org.bitcoins.core.protocol.ln
import org.bitcoins.core.crypto.ECPrivateKey
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.testkit.core.gen.ln.LnInvoiceGen
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
class LnInvoiceSignatureTest extends BitcoinSUnitTest {

View File

@ -18,7 +18,8 @@ import org.bitcoins.core.protocol.ln.fee.{
}
import org.bitcoins.core.protocol.ln.routing.LnRoute
import org.bitcoins.core.protocol.{Bech32Address, P2PKHAddress, P2SHAddress}
import org.bitcoins.core.util.{BitcoinSUnitTest, CryptoUtil}
import org.bitcoins.core.util.CryptoUtil
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scodec.bits.ByteVector
class LnInvoiceUnitTest extends BitcoinSUnitTest {

View File

@ -3,7 +3,7 @@ package org.bitcoins.core.protocol.ln
import org.bitcoins.testkit.core.gen.NumberGenerator
import org.bitcoins.core.number.{UInt5, UInt64}
import org.bitcoins.core.protocol.ln.util.LnUtil
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
class LnUtilTest extends BitcoinSUnitTest {
override implicit val generatorDrivenConfig: PropertyCheckConfiguration =

View File

@ -2,7 +2,7 @@ package org.bitcoins.core.protocol.ln.currency
import org.bitcoins.testkit.core.gen.{CurrencyUnitGenerator, NumberGenerator}
import org.bitcoins.testkit.core.gen.ln.LnCurrencyUnitGen
import org.bitcoins.core.util.BitcoinSUnitTest
import org.bitcoins.testkit.util.BitcoinSUnitTest
import org.scalatest.prop.PropertyChecks
class MilliSatoshisTest extends BitcoinSUnitTest {

View File

@ -1,6 +1,7 @@
package org.bitcoins.core.util
import org.bitcoins.testkit.core.gen.CryptoGenerators
import org.bitcoins.testkit.util.BitcoinSUnitTest
import scodec.bits.BinStringSyntax
/**

View File

@ -1,4 +1,4 @@
package org.bitcoins.core.util
package org.bitcoins.testkit.util
import org.scalatest.prop.PropertyChecks
import org.scalatest.{FlatSpec, MustMatchers}