mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-07 17:29:44 +02:00
GenerateKeyTest: Provoke exception for CertCannotEncrypt test case
This commit is contained in:
parent
589884672a
commit
61206dde53
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,9 @@ public class GenerateKeyTest extends AbstractSOPTest {
|
|||
|
||||
assertThrows(SOPGPException.CertCannotEncrypt.class, () ->
|
||||
sop.encrypt().withCert(signingOnlyCert)
|
||||
.plaintext(TestData.PLAINTEXT.getBytes(StandardCharsets.UTF_8)));
|
||||
.plaintext(TestData.PLAINTEXT.getBytes(StandardCharsets.UTF_8))
|
||||
.toByteArrayAndResult()
|
||||
.getBytes());
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue