mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 09:12:16 -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");
|
||||
long keyId = pub.getMasterKeyId();
|
||||
Assert.assertNull("key flags should be null",
|
||||
pub.canonicalize(new OperationLog(), 0).getPublicKey().getKeyUsage());
|
||||
Assert.assertEquals("key flags should be zero",
|
||||
0, (long) pub.canonicalize(new OperationLog(), 0).getPublicKey().getKeyUsage());
|
||||
|
||||
mProviderHelper.savePublicKeyRing(pub);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user