Make it handle whitespace in paths correctly (needs to be URL decoded)

This commit is contained in:
Christian Sailer 2017-10-16 14:32:16 +01:00
parent 45e4a96d77
commit ead805fb21

View File

@ -8,8 +8,8 @@ import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
class ConfigurationTest {
private val validConfigPath = File(javaClass.getResource("/signing_service.conf").path).absolutePath
private val invalidConfigPath = File(javaClass.getResource("/signing_service_fail.conf").path).absolutePath
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
@Test
fun `authMode is parsed correctly`() {