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());
|
assertFalse(info.isSignedOnly());
|
||||||
assertTrue(info.isEncrypted());
|
assertTrue(info.isEncrypted());
|
||||||
assertEquals(1, info.getKeyIds().size());
|
assertEquals(1, info.getKeyIds().size());
|
||||||
assertEquals(KeyIdUtil.fromLongKeyId("4766F6B9D5F21EB6"), info.getKeyIds().get(0));
|
assertEquals(KeyIdUtil.fromLongKeyId("4766F6B9D5F21EB6"), (long) info.getKeyIds().get(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -66,7 +66,7 @@ public class VerifyWithMissingPublicKeyCallback {
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public PGPPublicKeyRing onMissingPublicKeyEncountered(@Nonnull Long keyId) {
|
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;
|
return signingPubKeys;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class CachingSecretKeyRingProtectorTest {
|
||||||
|
|
||||||
Passphrase passphrase = withCallback.getPassphraseFor(x);
|
Passphrase passphrase = withCallback.getPassphraseFor(x);
|
||||||
assertNotNull(passphrase);
|
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