Fix DefaultConfigFileRepo Test

This commit is contained in:
erik 2023-02-10 12:49:16 +01:00
parent 69fe472971
commit a1192f4382
2 changed files with 2 additions and 2 deletions

View file

@ -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.")
}
}
}

View file

@ -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)
}