aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain-Test
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-03-20 18:55:16 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2015-03-20 18:55:16 +0100
commit88ca41d55586e5084cc3f177eb12617aa640ae1d (patch)
tree0ed8cfd30aa31814791c8594644d590d08d14389 /OpenKeychain-Test
parent3e51da3afa542c62b82bbcf9a953cdcd379950a2 (diff)
downloadopen-keychain-88ca41d55586e5084cc3f177eb12617aa640ae1d.tar.gz
open-keychain-88ca41d55586e5084cc3f177eb12617aa640ae1d.tar.bz2
open-keychain-88ca41d55586e5084cc3f177eb12617aa640ae1d.zip
add edit key unit test for no-op
Diffstat (limited to 'OpenKeychain-Test')
-rw-r--r--OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java
index e6ada202b..54ccccc3d 100644
--- a/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java
+++ b/OpenKeychain-Test/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java
@@ -312,6 +312,12 @@ public class PgpKeyOperationTest {
ring, parcel, new CryptoInputParcel(badphrase), LogType.MSG_MF_UNLOCK_ERROR);
}
+ {
+ parcel.reset();
+ assertModifyFailure("no-op should fail",
+ ring, parcel, cryptoInput, LogType.MSG_MF_ERROR_NOOP);
+ }
+
}
@Test