diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-06-21 21:31:25 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-06-21 21:31:25 +0200 |
commit | 4cc127e4604c664ee6a8607fc2404256f8949609 (patch) | |
tree | 71108127d7fc65d86c641ce94f713786f9fb4a78 /OpenKeychain/src/test/java/tests | |
parent | 0c3a478a431e37566dad6dfe3e396ff6c2034765 (diff) | |
parent | 0af2b27cb3d286f3f4e2f830c78b307ca222ff31 (diff) | |
download | open-keychain-4cc127e4604c664ee6a8607fc2404256f8949609.tar.gz open-keychain-4cc127e4604c664ee6a8607fc2404256f8949609.tar.bz2 open-keychain-4cc127e4604c664ee6a8607fc2404256f8949609.zip |
Merge pull request #672 from artbristol/functional-testing
VERY basic test for save keyring
Diffstat (limited to 'OpenKeychain/src/test/java/tests')
-rw-r--r-- | OpenKeychain/src/test/java/tests/PgpDecryptVerifyTest.java (renamed from OpenKeychain/src/test/java/tests/RoboTest.java) | 2 | ||||
-rw-r--r-- | OpenKeychain/src/test/java/tests/ProviderHelperKeyringTest.java | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/OpenKeychain/src/test/java/tests/RoboTest.java b/OpenKeychain/src/test/java/tests/PgpDecryptVerifyTest.java index 1a4f6b4aa..346a1f9df 100644 --- a/OpenKeychain/src/test/java/tests/RoboTest.java +++ b/OpenKeychain/src/test/java/tests/PgpDecryptVerifyTest.java @@ -9,7 +9,7 @@ import org.sufficientlysecure.keychain.testsupport.PgpVerifyTestingHelper; @RunWith(RobolectricTestRunner.class) @org.robolectric.annotation.Config(emulateSdk = 18) // Robolectric doesn't yet support 19 -public class RoboTest { +public class PgpDecryptVerifyTest { @Test public void testVerifySuccess() throws Exception { diff --git a/OpenKeychain/src/test/java/tests/ProviderHelperKeyringTest.java b/OpenKeychain/src/test/java/tests/ProviderHelperKeyringTest.java new file mode 100644 index 000000000..265e01170 --- /dev/null +++ b/OpenKeychain/src/test/java/tests/ProviderHelperKeyringTest.java @@ -0,0 +1,20 @@ +package tests; + +import org.junit.Assert; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.robolectric.*; +import org.openintents.openpgp.OpenPgpSignatureResult; +import org.sufficientlysecure.keychain.testsupport.KeyringTestingHelper; +import org.sufficientlysecure.keychain.testsupport.PgpVerifyTestingHelper; + +@RunWith(RobolectricTestRunner.class) +@org.robolectric.annotation.Config(emulateSdk = 18) // Robolectric doesn't yet support 19 +public class ProviderHelperKeyringTest { + + @Test + public void testSavePublicKeyring() throws Exception { + Assert.assertTrue(new KeyringTestingHelper(Robolectric.application).addKeyring()); + } + +} |