mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-18 05:12:16 -05:00
some cleanup in instrumentation tests
This commit is contained in:
parent
e85982a419
commit
d12d469714
@ -3,29 +3,18 @@ package org.sufficientlysecure.keychain;
|
|||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.database.sqlite.SQLiteCursor;
|
|
||||||
import android.support.test.espresso.Espresso;
|
|
||||||
import android.support.test.espresso.action.ViewActions;
|
|
||||||
import android.support.test.espresso.matcher.ViewMatchers;
|
|
||||||
import android.support.test.rule.ActivityTestRule;
|
import android.support.test.rule.ActivityTestRule;
|
||||||
import android.support.test.runner.AndroidJUnit4;
|
import android.support.test.runner.AndroidJUnit4;
|
||||||
import android.test.suitebuilder.annotation.LargeTest;
|
import android.test.suitebuilder.annotation.LargeTest;
|
||||||
import android.widget.AdapterView;
|
import android.widget.AdapterView;
|
||||||
|
|
||||||
import org.hamcrest.CoreMatchers;
|
|
||||||
import org.hamcrest.collection.IsMapContaining;
|
|
||||||
import org.junit.Before;
|
|
||||||
import org.junit.FixMethodOrder;
|
import org.junit.FixMethodOrder;
|
||||||
import org.junit.Rule;
|
import org.junit.Rule;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.MethodSorters;
|
import org.junit.runners.MethodSorters;
|
||||||
import org.sufficientlysecure.keychain.matcher.CustomMatchers;
|
|
||||||
import org.sufficientlysecure.keychain.provider.KeychainDatabase;
|
import org.sufficientlysecure.keychain.provider.KeychainDatabase;
|
||||||
import org.sufficientlysecure.keychain.provider.ProviderHelper;
|
|
||||||
import org.sufficientlysecure.keychain.ui.KeyListFragment.KeyListAdapter;
|
|
||||||
import org.sufficientlysecure.keychain.ui.MainActivity;
|
import org.sufficientlysecure.keychain.ui.MainActivity;
|
||||||
import org.sufficientlysecure.keychain.ui.adapter.KeyAdapter.KeyItem;
|
|
||||||
import org.sufficientlysecure.keychain.ui.util.Notify.Style;
|
import org.sufficientlysecure.keychain.ui.util.Notify.Style;
|
||||||
|
|
||||||
import static android.support.test.espresso.Espresso.onData;
|
import static android.support.test.espresso.Espresso.onData;
|
||||||
@ -36,9 +25,6 @@ import static android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA
|
|||||||
import static android.support.test.espresso.matcher.ViewMatchers.withId;
|
import static android.support.test.espresso.matcher.ViewMatchers.withId;
|
||||||
import static android.support.test.espresso.matcher.ViewMatchers.withText;
|
import static android.support.test.espresso.matcher.ViewMatchers.withText;
|
||||||
import static org.hamcrest.CoreMatchers.allOf;
|
import static org.hamcrest.CoreMatchers.allOf;
|
||||||
import static org.hamcrest.CoreMatchers.anything;
|
|
||||||
import static org.hamcrest.CoreMatchers.instanceOf;
|
|
||||||
import static org.hamcrest.CoreMatchers.is;
|
|
||||||
import static org.sufficientlysecure.keychain.TestHelpers.checkSnackbar;
|
import static org.sufficientlysecure.keychain.TestHelpers.checkSnackbar;
|
||||||
import static org.sufficientlysecure.keychain.TestHelpers.importKeysFromResource;
|
import static org.sufficientlysecure.keychain.TestHelpers.importKeysFromResource;
|
||||||
import static org.sufficientlysecure.keychain.matcher.CustomMatchers.withKeyItemId;
|
import static org.sufficientlysecure.keychain.matcher.CustomMatchers.withKeyItemId;
|
||||||
|
@ -72,7 +72,7 @@ public class EncryptDecryptSymmetricTests {
|
|||||||
|
|
||||||
MainActivity activity = mActivity.getActivity();
|
MainActivity activity = mActivity.getActivity();
|
||||||
|
|
||||||
String text = randomString(10, 40);
|
String text = randomString(10, 30);
|
||||||
|
|
||||||
// navigate to encrypt/decrypt
|
// navigate to encrypt/decrypt
|
||||||
onView(withId(R.id.drawer_layout)).perform(actionOpenDrawer());
|
onView(withId(R.id.drawer_layout)).perform(actionOpenDrawer());
|
||||||
|
Loading…
Reference in New Issue
Block a user