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

Kotlin conversion: PGPKeyRingCollection

This commit is contained in:
Paul Schaub 2023-09-04 13:44:18 +02:00
parent 0e6a146594
commit d075ed6637
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
4 changed files with 100 additions and 124 deletions

View file

@ -52,7 +52,7 @@ public class PGPKeyRingCollectionTest {
// silent = true -> No exception, but not keys either
PGPKeyRingCollection collection = new PGPKeyRingCollection(bytes, true);
assertEquals(0, collection.getPgpPublicKeyRingCollection().size());
assertEquals(0, collection.getPGPSecretKeyRingCollection().size());
assertEquals(0, collection.getPgpSecretKeyRingCollection().size());
}
@Test
@ -63,7 +63,7 @@ public class PGPKeyRingCollectionTest {
Collection<PGPKeyRing> keys = Arrays.asList(first, second, secondPub);
PGPKeyRingCollection collection = new PGPKeyRingCollection(keys, true);
assertEquals(2, collection.getPGPSecretKeyRingCollection().size());
assertEquals(2, collection.getPgpSecretKeyRingCollection().size());
assertEquals(1, collection.getPgpPublicKeyRingCollection().size());
}
}