summaryrefslogtreecommitdiff
path: root/crypto-pgpainless/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'crypto-pgpainless/src/test')
-rw-r--r--crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt2
-rw-r--r--crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt (renamed from crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt)18
-rw-r--r--crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt4
3 files changed, 12 insertions, 12 deletions
diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt
index f7bf46d9..39af53b1 100644
--- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt
+++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/KeyUtilsTest.kt
@@ -18,7 +18,7 @@ class KeyUtilsTest {
assertIs<PGPSecretKeyRing>(keyring)
val keyId = tryGetId(key)
assertNotNull(keyId)
- assertIs<GpgIdentifier.KeyId>(keyId)
+ assertIs<PGPIdentifier.KeyId>(keyId)
assertEquals("b950ae2813841585", keyId.toString())
}
}
diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt
index 009976a2..efc6e0ba 100644
--- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/GpgIdentifierTest.kt
+++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPIdentifierTest.kt
@@ -9,33 +9,33 @@ import kotlin.test.Test
import kotlin.test.assertNotNull
import kotlin.test.assertTrue
-class GpgIdentifierTest {
+class PGPIdentifierTest {
@Test
fun parseHexKeyIdWithout0xPrefix() {
- val identifier = GpgIdentifier.fromString("79E8208280490C77")
+ val identifier = PGPIdentifier.fromString("79E8208280490C77")
assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.KeyId }
+ assertTrue { identifier is PGPIdentifier.KeyId }
}
@Test
fun parseHexKeyId() {
- val identifier = GpgIdentifier.fromString("0x79E8208280490C77")
+ val identifier = PGPIdentifier.fromString("0x79E8208280490C77")
assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.KeyId }
+ assertTrue { identifier is PGPIdentifier.KeyId }
}
@Test
fun parseValidEmail() {
- val identifier = GpgIdentifier.fromString("john.doe@example.org")
+ val identifier = PGPIdentifier.fromString("john.doe@example.org")
assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.UserId }
+ assertTrue { identifier is PGPIdentifier.UserId }
}
@Test
fun parseEmailWithoutTLD() {
- val identifier = GpgIdentifier.fromString("john.doe@example")
+ val identifier = PGPIdentifier.fromString("john.doe@example")
assertNotNull(identifier)
- assertTrue { identifier is GpgIdentifier.UserId }
+ assertTrue { identifier is PGPIdentifier.UserId }
}
}
diff --git a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt
index c8bd66c5..43a62bd7 100644
--- a/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt
+++ b/crypto-pgpainless/src/test/kotlin/app/passwordstore/crypto/PGPKeyManagerTest.kt
@@ -1,8 +1,8 @@
package app.passwordstore.crypto
-import app.passwordstore.crypto.GpgIdentifier.KeyId
-import app.passwordstore.crypto.GpgIdentifier.UserId
import app.passwordstore.crypto.KeyUtils.tryGetId
+import app.passwordstore.crypto.PGPIdentifier.KeyId
+import app.passwordstore.crypto.PGPIdentifier.UserId
import app.passwordstore.crypto.errors.KeyAlreadyExistsException
import app.passwordstore.crypto.errors.KeyNotFoundException
import app.passwordstore.crypto.errors.NoKeysAvailableException