Skip to content

Commit

Permalink
Added asserting exception class
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 committed Sep 29, 2023
1 parent 6136b9e commit f98c0f5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package nl.altindag.ssl.pem.util;

import nl.altindag.ssl.exception.GenericIOException;
import nl.altindag.ssl.exception.GenericKeyStoreException;
import nl.altindag.ssl.pem.exception.CertificateParseException;
import nl.altindag.ssl.pem.exception.PemParseException;
import nl.altindag.ssl.pem.exception.PrivateKeyParseException;
Expand Down Expand Up @@ -845,6 +846,7 @@ void throwGenericKeyStoreWhenSetKeyEntryThrowsKeyStoreException() throws KeyStor
}
})) {
assertThatThrownBy(() -> PemUtils.loadIdentityMaterial(PEM_LOCATION + "unencrypted-identity.pem"))
.isInstanceOf(GenericKeyStoreException.class)
.hasMessageContaining("lazy");
}
}
Expand Down

0 comments on commit f98c0f5

Please sign in to comment.