diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-07-09 13:05:16 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-07-09 13:05:16 +0200 |
commit | 85a47d22f9bb1e4aaf5770c67416a5532977658e (patch) | |
tree | e2780addf5ebfb94652f37ac1e66ad1b62e8642f /OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java | |
parent | 89f48cc62ee97cbd1c08abfee44699377425c77d (diff) | |
download | open-keychain-85a47d22f9bb1e4aaf5770c67416a5532977658e.tar.gz open-keychain-85a47d22f9bb1e4aaf5770c67416a5532977658e.tar.bz2 open-keychain-85a47d22f9bb1e4aaf5770c67416a5532977658e.zip |
Get rid of robolectric workaround by using new annotation in robolectric 3.0
Diffstat (limited to 'OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java')
-rw-r--r-- | OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java index c0e28cd4b..2506f1630 100644 --- a/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java +++ b/OpenKeychain/src/test/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperationTest.java @@ -21,11 +21,11 @@ package org.sufficientlysecure.keychain.pgp; import junit.framework.AssertionFailedError; import org.junit.Assert; -import org.junit.Test; import org.junit.Before; import org.junit.BeforeClass; +import org.junit.Test; import org.junit.runner.RunWith; -import org.robolectric.*; +import org.robolectric.RobolectricGradleTestRunner; import org.robolectric.annotation.Config; import org.robolectric.shadows.ShadowLog; import org.spongycastle.bcpg.BCPGInputStream; @@ -41,7 +41,7 @@ import org.spongycastle.bcpg.UserIDPacket; import org.spongycastle.bcpg.sig.KeyFlags; import org.spongycastle.jce.provider.BouncyCastleProvider; import org.spongycastle.openpgp.PGPSignature; -import org.sufficientlysecure.keychain.WorkaroundBuildConfig; +import org.sufficientlysecure.keychain.BuildConfig; import org.sufficientlysecure.keychain.operations.results.OperationResult.LogType; import org.sufficientlysecure.keychain.operations.results.OperationResult.OperationLog; import org.sufficientlysecure.keychain.operations.results.PgpEditKeyResult; @@ -73,7 +73,8 @@ import java.util.List; import java.util.Random; @RunWith(RobolectricGradleTestRunner.class) -@Config(constants = WorkaroundBuildConfig.class, sdk = 21, manifest = "src/main/AndroidManifest.xml") +@Config(constants = BuildConfig.class, sdk = 21, manifest = "src/main/AndroidManifest.xml", + packageName = "org.sufficientlysecure.keychain") public class PgpKeyOperationTest { static UncachedKeyRing staticRing; |