fix unit test for new key flag behavior

This commit is contained in:
Vincent Breitmoser 2015-01-19 18:53:12 +01:00
parent a65edcdb2f
commit 89969252fd

View File

@ -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);