mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Make it handle whitespace in paths correctly (needs to be URL decoded)
This commit is contained in:
parent
45e4a96d77
commit
ead805fb21
@ -8,8 +8,8 @@ import kotlin.test.assertEquals
|
|||||||
import kotlin.test.assertFailsWith
|
import kotlin.test.assertFailsWith
|
||||||
|
|
||||||
class ConfigurationTest {
|
class ConfigurationTest {
|
||||||
private val validConfigPath = File(javaClass.getResource("/signing_service.conf").path).absolutePath
|
private val validConfigPath = File(java.net.URLDecoder.decode(javaClass.getResource("/signing_service.conf").path, "UTF-8")).absolutePath
|
||||||
private val invalidConfigPath = File(javaClass.getResource("/signing_service_fail.conf").path).absolutePath
|
private val invalidConfigPath = File(java.net.URLDecoder.decode(javaClass.getResource("/signing_service_fail.conf").path, "UTF-8")).absolutePath
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `authMode is parsed correctly`() {
|
fun `authMode is parsed correctly`() {
|
||||||
|
Loading…
Reference in New Issue
Block a user