aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-01-19 18:53:12 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2015-01-19 18:53:12 +0100
commit89969252fd7708bad4656c2c1eef94d13631975a (patch)
treec1062546f11590887d2e077a0d0c415007184c56 /OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain
parenta65edcdb2ffb7399daf5359f0f57bf791c23b7d8 (diff)
downloadopen-keychain-89969252fd7708bad4656c2c1eef94d13631975a.tar.gz
open-keychain-89969252fd7708bad4656c2c1eef94d13631975a.tar.bz2
open-keychain-89969252fd7708bad4656c2c1eef94d13631975a.zip
fix unit test for new key flag behavior
Diffstat (limited to 'OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain')
-rw-r--r--OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java
index e4a1d62ae..9ad3ca489 100644
--- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java
+++ b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java
@@ -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);