mirror of
https://github.com/corda/corda.git
synced 2025-05-30 22:24:22 +00:00
fix temp folder rules
This commit is contained in:
parent
d8ed3492b9
commit
03d8009c7d
@ -18,7 +18,6 @@ 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 org.junit.rules.TemporaryFolder
|
||||||
@ -33,7 +32,7 @@ class DeterministicContractCryptoTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
@Rule
|
@ClassRule
|
||||||
@JvmField
|
@JvmField
|
||||||
val tempFolder = TemporaryFolder()
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
@ -48,7 +47,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(path, 10, "RSA")
|
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
|
@ -22,13 +22,15 @@ 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
|
import org.junit.rules.TemporaryFolder
|
||||||
|
|
||||||
class NonDeterministicContractVerifyTest {
|
class NonDeterministicContractVerifyTest {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val logger = loggerFor<NonDeterministicContractVerifyTest>()
|
val logger = loggerFor<NonDeterministicContractVerifyTest>()
|
||||||
|
|
||||||
@ -36,7 +38,7 @@ class NonDeterministicContractVerifyTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
@Rule
|
@ClassRule
|
||||||
@JvmField
|
@JvmField
|
||||||
val tempFolder = TemporaryFolder()
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
@ -51,7 +53,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(path, 10, "RSA")
|
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
|
@ -19,7 +19,6 @@ 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
|
||||||
@ -33,7 +32,7 @@ class SandboxAttachmentsTest {
|
|||||||
@JvmField
|
@JvmField
|
||||||
val djvmSources = DeterministicSourcesRule()
|
val djvmSources = DeterministicSourcesRule()
|
||||||
|
|
||||||
@Rule
|
@ClassRule
|
||||||
@JvmField
|
@JvmField
|
||||||
val tempFolder = TemporaryFolder()
|
val tempFolder = TemporaryFolder()
|
||||||
|
|
||||||
@ -48,7 +47,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(path, 10, "RSA")
|
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
djvmBootstrapSource = djvmSources.bootstrap,
|
djvmBootstrapSource = djvmSources.bootstrap,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user