mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-17 14:25:08 -05:00
fix unit test for new key flag behavior
This commit is contained in:
parent
a65edcdb2f
commit
89969252fd
@ -106,8 +106,8 @@ public class ProviderHelperSaveTest {
|
|||||||
|
|
||||||
UncachedKeyRing pub = readRingFromResource("/test-keys/mailvelope_07_no_key_flags.asc");
|
UncachedKeyRing pub = readRingFromResource("/test-keys/mailvelope_07_no_key_flags.asc");
|
||||||
long keyId = pub.getMasterKeyId();
|
long keyId = pub.getMasterKeyId();
|
||||||
Assert.assertNull("key flags should be null",
|
Assert.assertEquals("key flags should be zero",
|
||||||
pub.canonicalize(new OperationLog(), 0).getPublicKey().getKeyUsage());
|
0, (long) pub.canonicalize(new OperationLog(), 0).getPublicKey().getKeyUsage());
|
||||||
|
|
||||||
mProviderHelper.savePublicKeyRing(pub);
|
mProviderHelper.savePublicKeyRing(pub);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user