1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-06-14 23:54:51 +02:00

Test getSecretKey()

This commit is contained in:
Paul Schaub 2021-01-21 14:38:25 +01:00
parent c35154813a
commit ccae32ca3f
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -104,5 +104,10 @@ public class KeyRingInfoTest {
PGPSecretKeyRing secretKeys = TestKeys.getCryptieSecretKeyRing();
PGPPublicKeyRing publicKeys = KeyRingUtils.publicKeyRingFrom(secretKeys);
KeyRingInfo info = PGPainless.inspectKeyRing(secretKeys);
assertEquals(secretKeys.getSecretKey(), info.getSecretKey());
info = PGPainless.inspectKeyRing(publicKeys);
assertNull(info.getSecretKey());
}
}