mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-08 17:59:43 +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, () ->
|
assertThrows(SOPGPException.CertCannotEncrypt.class, () ->
|
||||||
sop.encrypt().withCert(signingOnlyCert)
|
sop.encrypt().withCert(signingOnlyCert)
|
||||||
.plaintext(TestData.PLAINTEXT.getBytes(StandardCharsets.UTF_8)));
|
.plaintext(TestData.PLAINTEXT.getBytes(StandardCharsets.UTF_8))
|
||||||
|
.toByteArrayAndResult()
|
||||||
|
.getBytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue