mirror of
https://github.com/corda/corda.git
synced 2025-04-19 08:36:39 +00:00
Fix compile errors post merge
This commit is contained in:
parent
e8eb4c9bf6
commit
8dbb9eb07f
@ -32,7 +32,6 @@ import net.corda.core.node.NotaryInfo
|
||||
import net.corda.core.transactions.TransactionBuilder
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.core.utilities.seconds
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.node.services.config.MySQLConfiguration
|
||||
import net.corda.node.services.config.NotaryConfig
|
||||
import net.corda.node.services.transactions.MySQLNotaryService
|
||||
@ -68,10 +67,10 @@ class MySQLNotaryServiceTests : IntegrationTest() {
|
||||
}
|
||||
|
||||
private lateinit var mockNet: InternalMockNetwork
|
||||
private lateinit var node: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var node: TestStartedNode
|
||||
private val nodeParty: Party get() = node.info.singleIdentity()
|
||||
private lateinit var notaryParty: Party
|
||||
private lateinit var notaryNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var notaryNode: TestStartedNode
|
||||
|
||||
@Before
|
||||
fun before() {
|
||||
@ -247,7 +246,7 @@ class MySQLNotaryServiceTests : IntegrationTest() {
|
||||
}
|
||||
}
|
||||
|
||||
private fun issueState(node: StartedNode<InternalMockNetwork.MockNode>, notary: Party): StateAndRef<*> {
|
||||
private fun issueState(node: TestStartedNode, notary: Party): StateAndRef<*> {
|
||||
return node.database.transaction {
|
||||
val builder = DummyContract.generateInitial(Random().nextInt(), notary, node.info.singleIdentity().ref(0))
|
||||
val stx = node.services.signInitialTransaction(builder)
|
||||
|
@ -126,7 +126,7 @@ abstract class AbstractNode<S : StartedNode>(val configuration: NodeConfiguratio
|
||||
protected val versionInfo: VersionInfo,
|
||||
protected val cordappLoader: CordappLoader,
|
||||
protected val serverThread: AffinityExecutor.ServiceAffinityExecutor,
|
||||
private val busyNodeLatch: ReusableLatch = ReusableLatch()) : SingletonSerializeAsToken() {
|
||||
protected val busyNodeLatch: ReusableLatch = ReusableLatch()) : SingletonSerializeAsToken() {
|
||||
|
||||
protected abstract val log: Logger
|
||||
|
||||
|
@ -172,7 +172,7 @@ D""".trimStart()
|
||||
}
|
||||
}
|
||||
|
||||
override fun start(): StartedNode<Node> {
|
||||
override fun start(): StartedNode {
|
||||
val started = super.start()
|
||||
registerOptionalMetricsReporter(configuration, started.services.monitoringService.metrics)
|
||||
return started
|
||||
|
@ -21,8 +21,8 @@ import net.corda.core.internal.executeAsync
|
||||
import net.corda.core.node.AppServiceHub
|
||||
import net.corda.core.node.services.CordaService
|
||||
import net.corda.core.serialization.SingletonSerializeAsToken
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.testing.node.internal.InternalMockNetwork
|
||||
import net.corda.testing.node.internal.TestStartedNode
|
||||
import net.corda.testing.node.internal.cordappsForPackages
|
||||
import net.corda.testing.node.internal.startFlow
|
||||
import org.junit.After
|
||||
@ -34,7 +34,7 @@ import kotlin.test.assertFailsWith
|
||||
|
||||
class FlowAsyncOperationTests {
|
||||
private lateinit var mockNet: InternalMockNetwork
|
||||
private lateinit var aliceNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var aliceNode: TestStartedNode
|
||||
@Before
|
||||
fun setup() {
|
||||
mockNet = InternalMockNetwork(
|
||||
|
@ -19,10 +19,10 @@ import net.corda.core.node.services.trackBy
|
||||
import net.corda.core.node.services.vault.QueryCriteria
|
||||
import net.corda.core.utilities.OpaqueBytes
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.testing.core.*
|
||||
import net.corda.testing.node.InMemoryMessagingNetwork.ServicePeerAllocationStrategy.RoundRobin
|
||||
import net.corda.testing.node.internal.InternalMockNetwork
|
||||
import net.corda.testing.node.internal.TestStartedNode
|
||||
import net.corda.testing.node.internal.cordappsForPackages
|
||||
import net.corda.testing.node.internal.startFlow
|
||||
import org.junit.After
|
||||
@ -33,9 +33,9 @@ import kotlin.test.assertEquals
|
||||
class CashIssueAndPaymentFlowTests {
|
||||
private lateinit var mockNet: InternalMockNetwork
|
||||
private val ref = OpaqueBytes.of(0x01)
|
||||
private lateinit var bankOfCordaNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var bankOfCordaNode: TestStartedNode
|
||||
private lateinit var bankOfCorda: Party
|
||||
private lateinit var aliceNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var aliceNode: TestStartedNode
|
||||
private lateinit var notary: Party
|
||||
|
||||
@Before
|
||||
|
@ -19,10 +19,10 @@ import net.corda.core.node.services.trackBy
|
||||
import net.corda.core.node.services.vault.QueryCriteria
|
||||
import net.corda.core.utilities.OpaqueBytes
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.testing.core.*
|
||||
import net.corda.testing.node.InMemoryMessagingNetwork.ServicePeerAllocationStrategy.RoundRobin
|
||||
import net.corda.testing.node.internal.InternalMockNetwork
|
||||
import net.corda.testing.node.internal.TestStartedNode
|
||||
import net.corda.testing.node.internal.cordappsForPackages
|
||||
import net.corda.testing.node.internal.startFlow
|
||||
import org.junit.After
|
||||
@ -42,9 +42,9 @@ class CashIssueAndPayNoSelectionTests(private val anonymous: Boolean) {
|
||||
|
||||
private lateinit var mockNet: InternalMockNetwork
|
||||
private val ref = OpaqueBytes.of(0x01)
|
||||
private lateinit var bankOfCordaNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var bankOfCordaNode: TestStartedNode
|
||||
private lateinit var bankOfCorda: Party
|
||||
private lateinit var aliceNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var aliceNode: TestStartedNode
|
||||
private lateinit var notary: Party
|
||||
|
||||
@Before
|
||||
|
@ -19,10 +19,10 @@ import net.corda.core.node.services.trackBy
|
||||
import net.corda.core.node.services.vault.QueryCriteria
|
||||
import net.corda.core.utilities.OpaqueBytes
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.testing.core.*
|
||||
import net.corda.testing.node.InMemoryMessagingNetwork.ServicePeerAllocationStrategy.RoundRobin
|
||||
import net.corda.testing.node.internal.InternalMockNetwork
|
||||
import net.corda.testing.node.internal.TestStartedNode
|
||||
import net.corda.testing.node.internal.cordappsForPackages
|
||||
import net.corda.testing.node.internal.startFlow
|
||||
import org.junit.After
|
||||
@ -35,9 +35,9 @@ class CashPaymentFlowTests {
|
||||
private lateinit var mockNet: InternalMockNetwork
|
||||
private val initialBalance = 2000.DOLLARS
|
||||
private val ref = OpaqueBytes.of(0x01)
|
||||
private lateinit var bankOfCordaNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var bankOfCordaNode: TestStartedNode
|
||||
private lateinit var bankOfCorda: Party
|
||||
private lateinit var aliceNode: StartedNode<InternalMockNetwork.MockNode>
|
||||
private lateinit var aliceNode: TestStartedNode
|
||||
|
||||
@Before
|
||||
fun start() {
|
||||
|
@ -49,7 +49,6 @@ import net.corda.core.utilities.days
|
||||
import net.corda.core.utilities.getOrThrow
|
||||
import net.corda.core.utilities.toNonEmptySet
|
||||
import net.corda.core.utilities.unwrap
|
||||
import net.corda.node.internal.StartedNode
|
||||
import net.corda.node.services.api.CheckpointStorage
|
||||
import net.corda.node.services.api.IdentityServiceInternal
|
||||
import net.corda.node.services.api.WritableTransactionStorage
|
||||
@ -335,7 +334,7 @@ class TwoPartyTradeFlowTests(private val anonymous: Boolean) {
|
||||
// Creates a mock node with an overridden storage service that uses a RecordingMap, that lets us test the order
|
||||
// of gets and puts.
|
||||
private fun makeNodeWithTracking(
|
||||
name: CordaX500Name): StartedNode<InternalMockNetwork.MockNode> {
|
||||
name: CordaX500Name): TestStartedNode {
|
||||
// Create a node in the mock network ...
|
||||
return mockNet.createNode(InternalMockNodeParameters(legalName = name), nodeFactory = { args, _ ->
|
||||
object : InternalMockNetwork.MockNode(args) {
|
||||
@ -556,8 +555,8 @@ class TwoPartyTradeFlowTests(private val anonymous: Boolean) {
|
||||
|
||||
private fun runBuyerAndSeller(notary: Party,
|
||||
buyer: Party,
|
||||
sellerNode: StartedNode<InternalMockNetwork.MockNode>,
|
||||
buyerNode: StartedNode<InternalMockNetwork.MockNode>,
|
||||
sellerNode: TestStartedNode,
|
||||
buyerNode: TestStartedNode,
|
||||
assetToSell: StateAndRef<OwnableState>): RunResult {
|
||||
val buyerFlows: Observable<out FlowLogic<*>> = buyerNode.registerInitiatedFlow(BuyerAcceptor::class.java)
|
||||
val firstBuyerFiber = buyerFlows.toFuture().map { it.stateMachine }
|
||||
@ -651,10 +650,10 @@ class TwoPartyTradeFlowTests(private val anonymous: Boolean) {
|
||||
|
||||
private fun insertFakeTransactions(
|
||||
wtxToSign: List<WireTransaction>,
|
||||
node: StartedNode<*>,
|
||||
node: TestStartedNode,
|
||||
identity: Party,
|
||||
notaryNode: StartedNode<*>,
|
||||
vararg extraSigningNodes: StartedNode<*>): Map<SecureHash, SignedTransaction> {
|
||||
notaryNode: TestStartedNode,
|
||||
vararg extraSigningNodes: TestStartedNode): Map<SecureHash, SignedTransaction> {
|
||||
val notaryParty = mockNet.defaultNotaryIdentity
|
||||
val signed = wtxToSign.map {
|
||||
val id = it.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user