mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +01:00
Test getSecretKey()
This commit is contained in:
parent
c35154813a
commit
ccae32ca3f
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue