mirror of
https://github.com/corda/corda.git
synced 2025-01-14 16:59:52 +00:00
Merge pull request #59 from corda/christians-fix-unittests-for-windows
Fix unittests for windows
This commit is contained in:
commit
3a22962815
@ -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`() {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user