aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain-Test/src/test
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-08-29 13:36:35 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-08-29 13:36:35 +0200
commitc1cc27366cb9ab6a2962170f1363fc7accfc617c (patch)
treed4bcd4627adbe317ca7c86204f554ae10256d14a /OpenKeychain-Test/src/test
parente037b7824856cea0bf090a394cb70eb92c38c5a4 (diff)
downloadopen-keychain-c1cc27366cb9ab6a2962170f1363fc7accfc617c.tar.gz
open-keychain-c1cc27366cb9ab6a2962170f1363fc7accfc617c.tar.bz2
open-keychain-c1cc27366cb9ab6a2962170f1363fc7accfc617c.zip
move stray test file to correct position
Diffstat (limited to 'OpenKeychain-Test/src/test')
-rw-r--r--OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/KeyFormattingUtilsTest.java44
1 files changed, 0 insertions, 44 deletions
diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/KeyFormattingUtilsTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/KeyFormattingUtilsTest.java
deleted file mode 100644
index 6aa4e7b8e..000000000
--- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/util/KeyFormattingUtilsTest.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package org.sufficientlysecure.keychain.util;
-
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.robolectric.RobolectricTestRunner;
-import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
-
-
-@RunWith(RobolectricTestRunner.class)
-@org.robolectric.annotation.Config(emulateSdk = 18) // Robolectric doesn't yet support 19
-public class KeyFormattingUtilsTest {
-
- static final byte[] fp = new byte[] {
- (byte) 0xD4, (byte) 0xAB, (byte) 0x19, (byte) 0x29, (byte) 0x64,
- (byte) 0xF7, (byte) 0x6A, (byte) 0x7F, (byte) 0x8F, (byte) 0x8A,
- (byte) 0x9B, (byte) 0x35, (byte) 0x7B, (byte) 0xD1, (byte) 0x83,
- (byte) 0x20, (byte) 0xDE, (byte) 0xAD, (byte) 0xFA, (byte) 0x11
- };
- static final long keyId = 0x7bd18320deadfa11L;
-
- @Test
- public void testStuff() {
- Assert.assertEquals(KeyFormattingUtils.convertFingerprintToKeyId(fp), keyId);
-
- Assert.assertEquals(
- "d4ab192964f76a7f8f8a9b357bd18320deadfa11",
- KeyFormattingUtils.convertFingerprintToHex(fp)
- );
-
- Assert.assertEquals(
- "0x7bd18320deadfa11",
- KeyFormattingUtils.convertKeyIdToHex(keyId)
- );
-
- Assert.assertEquals(
- "0xdeadfa11",
- KeyFormattingUtils.convertKeyIdToHexShort(keyId)
- );
-
- }
-
-}