mirror of
https://github.com/corda/corda.git
synced 2025-05-31 22:50:53 +00:00
fix merge conflicts due to changes in Signed test cordapp creation
This commit is contained in:
parent
6a3a9eded3
commit
d8ed3492b9
BIN
lib/quasar.jar
BIN
lib/quasar.jar
Binary file not shown.
@ -18,8 +18,10 @@ import net.corda.testing.node.NotarySpec
|
|||||||
import net.corda.testing.node.internal.CustomCordapp
|
import net.corda.testing.node.internal.CustomCordapp
|
||||||
import net.corda.testing.node.internal.cordappWithPackages
|
import net.corda.testing.node.internal.cordappWithPackages
|
||||||
import org.junit.ClassRule
|
import org.junit.ClassRule
|
||||||
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.jupiter.api.assertDoesNotThrow
|
import org.junit.jupiter.api.assertDoesNotThrow
|
||||||
|
import org.junit.rules.TemporaryFolder
|
||||||
import java.security.KeyPairGenerator
|
import java.security.KeyPairGenerator
|
||||||
|
|
||||||
class DeterministicContractCryptoTest {
|
class DeterministicContractCryptoTest {
|
||||||
@ -31,7 +33,12 @@ class DeterministicContractCryptoTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
|
@Rule
|
||||||
|
@JvmField
|
||||||
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
||||||
|
tempFolder.root.toPath().let { path ->
|
||||||
return DriverParameters(
|
return DriverParameters(
|
||||||
portAllocation = incrementalPortAllocation(),
|
portAllocation = incrementalPortAllocation(),
|
||||||
startNodesInProcess = false,
|
startNodesInProcess = false,
|
||||||
@ -41,7 +48,7 @@ class DeterministicContractCryptoTest {
|
|||||||
CustomCordapp(
|
CustomCordapp(
|
||||||
packages = setOf("net.corda.contracts.djvm.crypto"),
|
packages = setOf("net.corda.contracts.djvm.crypto"),
|
||||||
name = "deterministic-crypto-contract",
|
name = "deterministic-crypto-contract",
|
||||||
signingInfo = CustomCordapp.SigningInfo()
|
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
@ -49,6 +56,7 @@ class DeterministicContractCryptoTest {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test DJVM can verify using crypto`() {
|
fun `test DJVM can verify using crypto`() {
|
||||||
|
@ -22,9 +22,11 @@ import net.corda.testing.node.internal.CustomCordapp
|
|||||||
import net.corda.testing.node.internal.cordappWithPackages
|
import net.corda.testing.node.internal.cordappWithPackages
|
||||||
import org.assertj.core.api.AssertionsForInterfaceTypes.assertThat
|
import org.assertj.core.api.AssertionsForInterfaceTypes.assertThat
|
||||||
import org.junit.ClassRule
|
import org.junit.ClassRule
|
||||||
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.jupiter.api.assertDoesNotThrow
|
import org.junit.jupiter.api.assertDoesNotThrow
|
||||||
import org.junit.jupiter.api.assertThrows
|
import org.junit.jupiter.api.assertThrows
|
||||||
|
import org.junit.rules.TemporaryFolder
|
||||||
|
|
||||||
class NonDeterministicContractVerifyTest {
|
class NonDeterministicContractVerifyTest {
|
||||||
companion object {
|
companion object {
|
||||||
@ -34,7 +36,12 @@ class NonDeterministicContractVerifyTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
|
@Rule
|
||||||
|
@JvmField
|
||||||
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
||||||
|
tempFolder.root.toPath().let { path ->
|
||||||
return DriverParameters(
|
return DriverParameters(
|
||||||
portAllocation = incrementalPortAllocation(),
|
portAllocation = incrementalPortAllocation(),
|
||||||
startNodesInProcess = false,
|
startNodesInProcess = false,
|
||||||
@ -44,7 +51,7 @@ class NonDeterministicContractVerifyTest {
|
|||||||
CustomCordapp(
|
CustomCordapp(
|
||||||
packages = setOf("net.corda.contracts.djvm.broken"),
|
packages = setOf("net.corda.contracts.djvm.broken"),
|
||||||
name = "nondeterministic-contract",
|
name = "nondeterministic-contract",
|
||||||
signingInfo = CustomCordapp.SigningInfo()
|
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
@ -52,6 +59,7 @@ class NonDeterministicContractVerifyTest {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test DJVM rejects contract that uses Instant now`() {
|
fun `test DJVM rejects contract that uses Instant now`() {
|
||||||
|
@ -19,9 +19,11 @@ import net.corda.testing.node.internal.CustomCordapp
|
|||||||
import net.corda.testing.node.internal.cordappWithPackages
|
import net.corda.testing.node.internal.cordappWithPackages
|
||||||
import org.assertj.core.api.Assertions.assertThat
|
import org.assertj.core.api.Assertions.assertThat
|
||||||
import org.junit.ClassRule
|
import org.junit.ClassRule
|
||||||
|
import org.junit.Rule
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
import org.junit.jupiter.api.assertDoesNotThrow
|
import org.junit.jupiter.api.assertDoesNotThrow
|
||||||
import org.junit.jupiter.api.assertThrows
|
import org.junit.jupiter.api.assertThrows
|
||||||
|
import org.junit.rules.TemporaryFolder
|
||||||
|
|
||||||
class SandboxAttachmentsTest {
|
class SandboxAttachmentsTest {
|
||||||
companion object {
|
companion object {
|
||||||
@ -31,7 +33,12 @@ class SandboxAttachmentsTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
|
@Rule
|
||||||
|
@JvmField
|
||||||
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
fun parametersFor(djvmSources: DeterministicSourcesRule): DriverParameters {
|
||||||
|
tempFolder.root.toPath().let { path ->
|
||||||
return DriverParameters(
|
return DriverParameters(
|
||||||
portAllocation = incrementalPortAllocation(),
|
portAllocation = incrementalPortAllocation(),
|
||||||
startNodesInProcess = false,
|
startNodesInProcess = false,
|
||||||
@ -41,7 +48,7 @@ class SandboxAttachmentsTest {
|
|||||||
CustomCordapp(
|
CustomCordapp(
|
||||||
packages = setOf("net.corda.contracts.djvm.attachment"),
|
packages = setOf("net.corda.contracts.djvm.attachment"),
|
||||||
name = "sandbox-attachment-contract",
|
name = "sandbox-attachment-contract",
|
||||||
signingInfo = CustomCordapp.SigningInfo()
|
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
@ -49,6 +56,7 @@ class SandboxAttachmentsTest {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test attachment accessible within sandbox`() {
|
fun `test attachment accessible within sandbox`() {
|
||||||
|
@ -20,6 +20,7 @@ import net.corda.core.flows.InitiatedBy
|
|||||||
import net.corda.core.flows.NotaryChangeFlow
|
import net.corda.core.flows.NotaryChangeFlow
|
||||||
import net.corda.core.flows.NotaryFlow
|
import net.corda.core.flows.NotaryFlow
|
||||||
import net.corda.core.flows.StartableByService
|
import net.corda.core.flows.StartableByService
|
||||||
|
import net.corda.core.flows.StateMachineRunId
|
||||||
import net.corda.core.identity.AbstractParty
|
import net.corda.core.identity.AbstractParty
|
||||||
import net.corda.core.identity.CordaX500Name
|
import net.corda.core.identity.CordaX500Name
|
||||||
import net.corda.core.identity.Party
|
import net.corda.core.identity.Party
|
||||||
@ -119,9 +120,11 @@ import net.corda.node.services.persistence.PublicKeyToOwningIdentityCacheImpl
|
|||||||
import net.corda.node.services.persistence.PublicKeyToTextConverter
|
import net.corda.node.services.persistence.PublicKeyToTextConverter
|
||||||
import net.corda.node.services.rpc.CheckpointDumper
|
import net.corda.node.services.rpc.CheckpointDumper
|
||||||
import net.corda.node.services.schema.NodeSchemaService
|
import net.corda.node.services.schema.NodeSchemaService
|
||||||
|
import net.corda.node.services.statemachine.Event
|
||||||
import net.corda.node.services.statemachine.ExternalEvent
|
import net.corda.node.services.statemachine.ExternalEvent
|
||||||
import net.corda.node.services.statemachine.FlowLogicRefFactoryImpl
|
import net.corda.node.services.statemachine.FlowLogicRefFactoryImpl
|
||||||
import net.corda.node.services.statemachine.FlowMonitor
|
import net.corda.node.services.statemachine.FlowMonitor
|
||||||
|
import net.corda.node.services.statemachine.FlowStateMachineImpl
|
||||||
import net.corda.node.services.statemachine.SingleThreadedStateMachineManager
|
import net.corda.node.services.statemachine.SingleThreadedStateMachineManager
|
||||||
import net.corda.node.services.statemachine.StaffedFlowHospital
|
import net.corda.node.services.statemachine.StaffedFlowHospital
|
||||||
import net.corda.node.services.statemachine.StateMachineManager
|
import net.corda.node.services.statemachine.StateMachineManager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user