Fix DefaultConfigFileRepo Test
This commit is contained in:
parent
69fe472971
commit
a1192f4382
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ import org.domaindrivenarchitecture.provs.configuration.domain.ConfigFileReposit
|
|||
class DefaultConfigFileRepository : ConfigFileRepository {
|
||||
override fun assertExists(configFileName: ConfigFileName?) {
|
||||
if (configFileName != null && !checkLocalFile(configFileName.fullqualified())) {
|
||||
throw RuntimeException("Config file ${configFileName.fileName} not found. Please check if path is correct.")
|
||||
throw RuntimeException("Config file not found. Please check if path is correct.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ internal class DefaultConfigFileRepositoryKtTest {
|
|||
) { repo.assertExists(invalidFileName) }
|
||||
|
||||
assertEquals(
|
||||
"Application file iDontExist not found. Please check if path is correct.",
|
||||
"Config file not found. Please check if path is correct.",
|
||||
exception.message)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue