mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-25 22:02:05 +01:00
Please the checkstyle checker
This commit is contained in:
parent
c61a129e08
commit
b7e8b56e3d
1 changed files with 2 additions and 2 deletions
|
@ -92,10 +92,10 @@ public class DecryptAndVerifyMessageTest {
|
|||
.addDecryptionKey(juliet)
|
||||
.addVerificationCert(KeyRingUtils.publicKeyRingFrom(juliet));
|
||||
|
||||
try (final DecryptionStream decryptor = PGPainless.decryptAndOrVerify()
|
||||
try (DecryptionStream decryptor = PGPainless.decryptAndOrVerify()
|
||||
.onInputStream(new ByteArrayInputStream(encryptedMessage.getBytes()))
|
||||
.withOptions(options);
|
||||
final ByteArrayOutputStream toPlain = new ByteArrayOutputStream()) {
|
||||
ByteArrayOutputStream toPlain = new ByteArrayOutputStream()) {
|
||||
Streams.pipeAll(decryptor, toPlain);
|
||||
assertEquals(-1, decryptor.read());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue