diff --git a/signing-server/src/test/kotlin/com/r3/corda/signing/configuration/ConfigurationTest.kt b/signing-server/src/test/kotlin/com/r3/corda/signing/configuration/ConfigurationTest.kt index 01e57e3880..7883e13ba7 100644 --- a/signing-server/src/test/kotlin/com/r3/corda/signing/configuration/ConfigurationTest.kt +++ b/signing-server/src/test/kotlin/com/r3/corda/signing/configuration/ConfigurationTest.kt @@ -3,12 +3,13 @@ package com.r3.corda.signing.configuration import com.typesafe.config.ConfigException import com.r3.corda.signing.authentication.AuthMode import org.junit.Test +import java.io.File import kotlin.test.assertEquals import kotlin.test.assertFailsWith class ConfigurationTest { - private val validConfigPath = javaClass.getResource("/signing_service.conf").path - private val invalidConfigPath = javaClass.getResource("/signing_service_fail.conf").path + private val validConfigPath = File(javaClass.getResource("/signing_service.conf").toURI()).absolutePath + private val invalidConfigPath = File(javaClass.getResource("/signing_service_fail.conf").toURI()).absolutePath @Test fun `authMode is parsed correctly`() { diff --git a/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt b/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt index 329eb22b8e..0aa04f5c29 100644 --- a/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt +++ b/verify-enclave/src/test/kotlin/com/r3/enclaves/txverify/EnclaveletTest.kt @@ -44,7 +44,7 @@ class EnclaveletTest { val cashContract = MockContractAttachment(interpreter.services.cordappProvider.getContractAttachmentID(Cash.PROGRAM_ID)!!, Cash.PROGRAM_ID) val req = TransactionVerificationRequest(wtx3.serialize(), arrayOf(wtx1.serialize(), wtx2.serialize()), arrayOf(cashContract.serialize().bytes)) val serialized = req.serialize() - Files.write(Paths.get("/tmp/req"), serialized.bytes) + Files.write(Paths.get(System.getProperty("java.io.tmpdir"), "req"), serialized.bytes) verifyInEnclave(serialized.bytes) } }