mirror of
https://github.com/corda/corda.git
synced 2025-05-28 13:14:24 +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.cordappWithPackages
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.assertDoesNotThrow
|
||||
import org.junit.rules.TemporaryFolder
|
||||
@ -33,7 +32,7 @@ class DeterministicContractCryptoTest {
|
||||
@JvmField
|
||||
val djvmSources = DeterministicSourcesRule()
|
||||
|
||||
@Rule
|
||||
@ClassRule
|
||||
@JvmField
|
||||
val tempFolder = TemporaryFolder()
|
||||
|
||||
@ -48,7 +47,7 @@ class DeterministicContractCryptoTest {
|
||||
CustomCordapp(
|
||||
packages = setOf("net.corda.contracts.djvm.crypto"),
|
||||
name = "deterministic-crypto-contract",
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||
)
|
||||
),
|
||||
djvmBootstrapSource = djvmSources.bootstrap,
|
||||
|
@ -22,13 +22,15 @@ import net.corda.testing.node.internal.CustomCordapp
|
||||
import net.corda.testing.node.internal.cordappWithPackages
|
||||
import org.assertj.core.api.AssertionsForInterfaceTypes.assertThat
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.assertDoesNotThrow
|
||||
import org.junit.jupiter.api.assertThrows
|
||||
import org.junit.rules.TemporaryFolder
|
||||
|
||||
class NonDeterministicContractVerifyTest {
|
||||
|
||||
|
||||
|
||||
companion object {
|
||||
val logger = loggerFor<NonDeterministicContractVerifyTest>()
|
||||
|
||||
@ -36,7 +38,7 @@ class NonDeterministicContractVerifyTest {
|
||||
@JvmField
|
||||
val djvmSources = DeterministicSourcesRule()
|
||||
|
||||
@Rule
|
||||
@ClassRule
|
||||
@JvmField
|
||||
val tempFolder = TemporaryFolder()
|
||||
|
||||
@ -51,7 +53,7 @@ class NonDeterministicContractVerifyTest {
|
||||
CustomCordapp(
|
||||
packages = setOf("net.corda.contracts.djvm.broken"),
|
||||
name = "nondeterministic-contract",
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||
)
|
||||
),
|
||||
djvmBootstrapSource = djvmSources.bootstrap,
|
||||
|
@ -19,7 +19,6 @@ import net.corda.testing.node.internal.CustomCordapp
|
||||
import net.corda.testing.node.internal.cordappWithPackages
|
||||
import org.assertj.core.api.Assertions.assertThat
|
||||
import org.junit.ClassRule
|
||||
import org.junit.Rule
|
||||
import org.junit.Test
|
||||
import org.junit.jupiter.api.assertDoesNotThrow
|
||||
import org.junit.jupiter.api.assertThrows
|
||||
@ -33,7 +32,7 @@ class SandboxAttachmentsTest {
|
||||
@JvmField
|
||||
val djvmSources = DeterministicSourcesRule()
|
||||
|
||||
@Rule
|
||||
@ClassRule
|
||||
@JvmField
|
||||
val tempFolder = TemporaryFolder()
|
||||
|
||||
@ -48,7 +47,7 @@ class SandboxAttachmentsTest {
|
||||
CustomCordapp(
|
||||
packages = setOf("net.corda.contracts.djvm.attachment"),
|
||||
name = "sandbox-attachment-contract",
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 10, "RSA")
|
||||
signingInfo = CustomCordapp.SigningInfo(path, 1, "RSA")
|
||||
)
|
||||
),
|
||||
djvmBootstrapSource = djvmSources.bootstrap,
|
||||
|
Loading…
x
Reference in New Issue
Block a user