aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/test/java/tests/RoboTest.java
diff options
context:
space:
mode:
authorArt O Cathain <art.home@gmail.com>2014-06-21 10:47:07 +0100
committerArt O Cathain <art.home@gmail.com>2014-06-21 17:44:04 +0100
commit0af2b27cb3d286f3f4e2f830c78b307ca222ff31 (patch)
tree8b2d2db6cf2cfd900833b9a8db2c2a42aee0a1a0 /OpenKeychain/src/test/java/tests/RoboTest.java
parenta1525bffe23fd0f86e77250f894eacbc481aed77 (diff)
downloadopen-keychain-0af2b27cb3d286f3f4e2f830c78b307ca222ff31.tar.gz
open-keychain-0af2b27cb3d286f3f4e2f830c78b307ca222ff31.tar.bz2
open-keychain-0af2b27cb3d286f3f4e2f830c78b307ca222ff31.zip
VERY basic test for save keyring
Diffstat (limited to 'OpenKeychain/src/test/java/tests/RoboTest.java')
-rw-r--r--OpenKeychain/src/test/java/tests/RoboTest.java37
1 files changed, 0 insertions, 37 deletions
diff --git a/OpenKeychain/src/test/java/tests/RoboTest.java b/OpenKeychain/src/test/java/tests/RoboTest.java
deleted file mode 100644
index 1a4f6b4aa..000000000
--- a/OpenKeychain/src/test/java/tests/RoboTest.java
+++ /dev/null
@@ -1,37 +0,0 @@
-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.PgpVerifyTestingHelper;
-
-@RunWith(RobolectricTestRunner.class)
-@org.robolectric.annotation.Config(emulateSdk = 18) // Robolectric doesn't yet support 19
-public class RoboTest {
-
- @Test
- public void testVerifySuccess() throws Exception {
-
- String testFileName = "/sample.txt";
- int expectedSignatureResult = OpenPgpSignatureResult.SIGNATURE_SUCCESS_UNCERTIFIED;
-
- int status = new PgpVerifyTestingHelper(Robolectric.application).doTestFile(testFileName);
-
- Assert.assertEquals(expectedSignatureResult, status);
- }
-
-
- @Test
- public void testVerifyFailure() throws Exception {
-
- String testFileName = "/sample-altered.txt";
- int expectedSignatureResult = OpenPgpSignatureResult.SIGNATURE_ERROR;
-
- int status = new PgpVerifyTestingHelper(Robolectric.application).doTestFile(testFileName);
-
- Assert.assertEquals(expectedSignatureResult, status);
- }
-
-}