Merge pull request #59 from corda/christians-fix-unittests-for-windows

Fix unittests for windows
This commit is contained in:
Christian Sailer 2017-10-17 15:24:38 +01:00 committed by GitHub
commit 3a22962815
2 changed files with 4 additions and 3 deletions

View File

@ -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`() {

View File

@ -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)
}
}