mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Fix file resource for non-unix filesystems.
This commit is contained in:
parent
81804df1eb
commit
b8538d5eb7
@ -3,12 +3,13 @@ package net.corda.signing.configuration
|
|||||||
import com.typesafe.config.ConfigException
|
import com.typesafe.config.ConfigException
|
||||||
import net.corda.signing.authentication.AuthMode
|
import net.corda.signing.authentication.AuthMode
|
||||||
import org.junit.Test
|
import org.junit.Test
|
||||||
|
import java.io.File
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertFailsWith
|
import kotlin.test.assertFailsWith
|
||||||
|
|
||||||
class ConfigurationTest {
|
class ConfigurationTest {
|
||||||
private val validConfigPath = javaClass.getResource("/signing_service.conf").path
|
private val validConfigPath = File(javaClass.getResource("/signing_service.conf").path).absolutePath
|
||||||
private val invalidConfigPath = javaClass.getResource("/signing_service_fail.conf").path
|
private val invalidConfigPath = File(javaClass.getResource("/signing_service_fail.conf").path).absolutePath
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `authMode is parsed correctly`() {
|
fun `authMode is parsed correctly`() {
|
||||||
|
Loading…
Reference in New Issue
Block a user