Skip to content
Snippets Groups Projects
Commit 13a9384c authored by Martin Vogel's avatar Martin Vogel
Browse files

refactor: fix test, remove os dependent part form assertion (planning#667)

parent bfcf7756
No related branches found
No related tags found
1 merge request!321Draft: planning#667 Derive VPKI Certs from PKCS KeyStore
......@@ -60,9 +60,9 @@ class KeyStoreReaderTest {
void loadKeyStoreWithIllegalPath() {
// When
var exception = assertThrows(FitConnectCertificateException.class, () -> uut.loadKeyStore("wrongPath", "password"));
var exception = assertThrows(FitConnectCertificateException.class, () -> uut.loadKeyStore("/wrong/path", "password"));
// Then
assertThat(exception.getMessage(), containsString("The system cannot find the file specified"));
assertThat(exception.getCause().getMessage(), containsString("\\wrong\\path"));
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment