1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 02:39:39 +02:00

Adopt changes from SOP-Java and add test for using incapable keys

This commit is contained in:
Paul Schaub 2022-06-10 17:43:51 +02:00
parent 0b69e18715
commit 53df487e59
7 changed files with 137 additions and 41 deletions

View file

@ -99,7 +99,7 @@ public class SignUsingPublicKeyBehaviorTest {
}
@Test
@ExpectSystemExitWithStatus(SOPGPException.BadData.EXIT_CODE)
@ExpectSystemExitWithStatus(SOPGPException.KeyCannotSign.EXIT_CODE)
public void testSignatureCreationAndVerification() throws IOException {
originalSout = System.out;
InputStream originalIn = System.in;