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:
parent
e67d5b405c
commit
f966c1ed07
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}));
|
||||
|
|
|
@ -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())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue