Merge pull request #57 from corda/christians-fix-doorman-tests-for-windows

Fix URI use in doorman parameters test so it works on Windows as well
This commit is contained in:
Christian Sailer 2017-10-13 09:38:54 +01:00 committed by GitHub
commit 81804df1eb

View File

@ -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`() {