1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-20 03:12:05 +01:00

Explicitly cast Long to long to fix ambiguity in debian tests

This commit is contained in:
Paul Schaub 2022-07-20 18:07:42 +02:00
parent e67d5b405c
commit f966c1ed07
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ public class MessageInspectorTest {
assertFalse(info.isSignedOnly());
assertTrue(info.isEncrypted());
assertEquals(1, info.getKeyIds().size());
assertEquals(KeyIdUtil.fromLongKeyId("4766F6B9D5F21EB6"), info.getKeyIds().get(0));
assertEquals(KeyIdUtil.fromLongKeyId("4766F6B9D5F21EB6"), (long) info.getKeyIds().get(0));
}
@Test

View file

@ -66,7 +66,7 @@ public class VerifyWithMissingPublicKeyCallback {
@Nullable
@Override
public PGPPublicKeyRing onMissingPublicKeyEncountered(@Nonnull Long keyId) {
assertEquals(signingKey.getKeyID(), keyId, "Signing key-ID mismatch.");
assertEquals(signingKey.getKeyID(), (long) keyId, "Signing key-ID mismatch.");
return signingPubKeys;
}
}));

View file

@ -129,7 +129,7 @@ public class CachingSecretKeyRingProtectorTest {
Passphrase passphrase = withCallback.getPassphraseFor(x);
assertNotNull(passphrase);
assertEquals(doubled, Long.valueOf(new String(passphrase.getChars())));
assertEquals(doubled, (long) Long.valueOf(new String(passphrase.getChars())));
}
}