mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-10 10:49:39 +02:00
Ignore certificate signatures of unknown type
This commit is contained in:
parent
89790a0a94
commit
b99822f405
8 changed files with 33 additions and 17 deletions
|
@ -5,7 +5,6 @@
|
|||
package org.pgpainless.algorithm;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -31,6 +30,6 @@ public class SignatureTypeTest {
|
|||
assertFalse(SignatureType.isRevocationSignature(SignatureType.STANDALONE.getCode()));
|
||||
assertFalse(SignatureType.isRevocationSignature(SignatureType.TIMESTAMP.getCode()));
|
||||
|
||||
assertThrows(IllegalArgumentException.class, () -> SignatureType.isRevocationSignature(-3));
|
||||
assertFalse(SignatureType.isRevocationSignature(-3));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue