mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Move BitcoinSUnitTest abstract class to the testkit project so it can be reused across our codebase (#375)
This commit is contained in:
parent
9fceb5266b
commit
eaa87b1e2b
@ -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}
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
@ -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}
|
||||
|
@ -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 {
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 =
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
package org.bitcoins.core.util
|
||||
package org.bitcoins.testkit.util
|
||||
|
||||
import org.scalatest.prop.PropertyChecks
|
||||
import org.scalatest.{FlatSpec, MustMatchers}
|
Loading…
Reference in New Issue
Block a user