mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-22 19:08:00 +01:00
Turn empty catch block into test failure
This commit is contained in:
parent
7a194c517a
commit
5c76f9046f
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
package org.pgpainless.decryption_verification;
|
package org.pgpainless.decryption_verification;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
import static org.junit.jupiter.api.Assertions.fail;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -71,7 +72,7 @@ public class IgnoreUnknownSignatureVersionsTest {
|
||||||
try {
|
try {
|
||||||
cert = PGPainless.readKeyRing().publicKeyRing(CERT);
|
cert = PGPainless.readKeyRing().publicKeyRing(CERT);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
fail("Cannot parse certificate.", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue