mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Fix test
This commit is contained in:
parent
e552255aa6
commit
af500bdec1
1 changed files with 1 additions and 2 deletions
|
@ -611,8 +611,7 @@ class KeyRingReaderTest {
|
||||||
@Test
|
@Test
|
||||||
public void testReadKeyRingWithArmoredSecretKey() throws IOException {
|
public void testReadKeyRingWithArmoredSecretKey() throws IOException {
|
||||||
OpenPGPKey secretKeys = api.generateKey().modernKeyRing("Alice <alice@pgpainless.org>");
|
OpenPGPKey secretKeys = api.generateKey().modernKeyRing("Alice <alice@pgpainless.org>");
|
||||||
// remove PacketFormat argument once https://github.com/bcgit/bc-java/pull/1993 lands in BC
|
String armored = secretKeys.toAsciiArmoredString();
|
||||||
String armored = secretKeys.toAsciiArmoredString(PacketFormat.LEGACY);
|
|
||||||
|
|
||||||
PGPKeyRing keyRing = PGPainless.readKeyRing()
|
PGPKeyRing keyRing = PGPainless.readKeyRing()
|
||||||
.keyRing(armored);
|
.keyRing(armored);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue