diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-13 22:02:01 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-13 22:02:01 +0200 |
commit | be199b844c106fd5247e511fdf9bc0a9e0b67839 (patch) | |
tree | 3e901847168c6bbdf9cca89010a795c81094608d /OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain | |
parent | b67b6b7f874c2f448f8636f7c0d465b381b9ea65 (diff) | |
download | open-keychain-be199b844c106fd5247e511fdf9bc0a9e0b67839.tar.gz open-keychain-be199b844c106fd5247e511fdf9bc0a9e0b67839.tar.bz2 open-keychain-be199b844c106fd5247e511fdf9bc0a9e0b67839.zip |
Cleanup tests
Diffstat (limited to 'OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/provider/ProviderHelperSaveTest.java | 11 |
1 files changed, 3 insertions, 8 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 c431dff1b..2d6b1b127 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 @@ -76,8 +76,7 @@ public class ProviderHelperSaveTest { @Test public void testImportNoFlagKey() throws Exception { - 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(); Assert.assertNull("key flags should be null", pub.getPublicKey().getKeyUsage()); @@ -100,8 +99,7 @@ public class ProviderHelperSaveTest { @Test public void testImportDivertToCard() throws Exception { - UncachedKeyRing sec = - readRingFromResource("/test-keys/divert_to_card_sec.asc"); + UncachedKeyRing sec = readRingFromResource("/test-keys/divert_to_card_sec.asc"); long keyId = sec.getMasterKeyId(); SaveKeyringResult result; @@ -124,8 +122,7 @@ public class ProviderHelperSaveTest { @Test public void testImportBadEncodedUserId() throws Exception { - UncachedKeyRing key = - readRingFromResource("/test-keys/bad_user_id_encoding.asc"); + UncachedKeyRing key = readRingFromResource("/test-keys/bad_user_id_encoding.asc"); long keyId = key.getMasterKeyId(); SaveKeyringResult result; @@ -133,8 +130,6 @@ public class ProviderHelperSaveTest { result = mProviderHelper.savePublicKeyRing(key, new ProgressScaler()); Assert.assertTrue("import of keyring should succeed", result.success()); - // make sure both the CanonicalizedSecretKeyRing as well as the CachedPublicKeyRing correctly - // indicate the secret key type CanonicalizedPublicKeyRing ring = mProviderHelper.getCanonicalizedPublicKeyRing(keyId); boolean found = false; byte[] badUserId = Hex.decode("436c61757320467261656e6b656c203c436c6175732e4672e46e6b656c4068616c696661782e727774682d61616368656e2e64653e"); |