mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +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 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`() {
|
||||
|
Loading…
Reference in New Issue
Block a user