From d8462ad6628410b832c72e638bf3a0c29fec4bda Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Mon, 16 Oct 2017 14:36:43 +0100 Subject: [PATCH] Make it handle whitespace in paths correctly - even better by using toURI() --- .idea/compiler.xml | 3 +++ .../com/r3/corda/signing/configuration/ConfigurationTest.kt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 25abc91c93..1d5e5c9c1f 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -99,6 +99,9 @@ + + + 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 385049b23b..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 @@ -8,8 +8,8 @@ import kotlin.test.assertEquals import kotlin.test.assertFailsWith class ConfigurationTest { - private val validConfigPath = File(java.net.URLDecoder.decode(javaClass.getResource("/signing_service.conf").path, "UTF-8")).absolutePath - private val invalidConfigPath = File(java.net.URLDecoder.decode(javaClass.getResource("/signing_service_fail.conf").path, "UTF-8")).absolutePath + 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`() {