From 39d139dc15bdb8a7b85a8bac2080d4a5731595c4 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Tue, 10 Oct 2017 18:05:41 +0100 Subject: [PATCH] Fix URI use in doorman parameters test so it works on Windows as well --- .../test/kotlin/com/r3/corda/doorman/DoormanParametersTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doorman/src/test/kotlin/com/r3/corda/doorman/DoormanParametersTest.kt b/doorman/src/test/kotlin/com/r3/corda/doorman/DoormanParametersTest.kt index b63c014dea..f1f7288fc8 100644 --- a/doorman/src/test/kotlin/com/r3/corda/doorman/DoormanParametersTest.kt +++ b/doorman/src/test/kotlin/com/r3/corda/doorman/DoormanParametersTest.kt @@ -9,8 +9,8 @@ import kotlin.test.assertFailsWith class DoormanParametersTest { private val testDummyPath = ".${File.separator}testDummyPath.jks" - private val validConfigPath = javaClass.getResource("/node.conf").path - private val invalidConfigPath = javaClass.getResource("/node_fail.conf").path + private val validConfigPath = File(javaClass.getResource("/node.conf").toURI()).absolutePath + private val invalidConfigPath = File(javaClass.getResource("/node_fail.conf").toURI()).absolutePath @Test fun `parse mode flag arg correctly`() {