Fix file resource for non-unix filesystems.

This commit is contained in:
Christian Sailer 2017-10-13 14:43:33 +01:00
parent 81804df1eb
commit b8538d5eb7

View File

@ -3,12 +3,13 @@ package net.corda.signing.configuration
import com.typesafe.config.ConfigException
import net.corda.signing.authentication.AuthMode
import org.junit.Test
import java.io.File
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
class ConfigurationTest {
private val validConfigPath = javaClass.getResource("/signing_service.conf").path
private val invalidConfigPath = javaClass.getResource("/signing_service_fail.conf").path
private val validConfigPath = File(javaClass.getResource("/signing_service.conf").path).absolutePath
private val invalidConfigPath = File(javaClass.getResource("/signing_service_fail.conf").path).absolutePath
@Test
fun `authMode is parsed correctly`() {