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

Add some debug checks to test

This commit is contained in:
Paul Schaub 2025-02-04 17:18:54 +01:00
parent 2c0edf9588
commit 002fa71bb7
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -88,6 +88,9 @@ public class FixUserIdDoesNotBreakEncryptionCapabilityTest {
KeyRingInfo before = PGPainless.inspectKeyRing(secretKeys);
KeyRingInfo after = PGPainless.inspectKeyRing(modified);
assertEquals(userIdBefore, before.getPrimaryUserId());
assertEquals(userIdAfter, after.getPrimaryUserId());
assertTrue(after.isKeyValidlyBound(after.getKeyId()));
assertTrue(before.isUsableForEncryption());
assertTrue(before.isUsableForSigning());
assertTrue(before.isUserIdValid(userIdBefore));