1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-16 17:32:06 +01:00

Turn empty catch block into test failure

This commit is contained in:
Paul Schaub 2023-05-03 17:16:10 +02:00
parent 7a194c517a
commit 5c76f9046f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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