summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-06-20 17:10:51 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-06-20 17:10:51 +0200
commit679d7f111e295d3a2b90ebafa8c4149d868bf30f (patch)
tree59708dc8a17e1d35c18d956c3cfdebac8a98f147 /app/src/androidTest/java
parente02cf0f2d1e1e8aa8fd561d59f6c12c9e16f1ba6 (diff)
version bumpv1.2.0.23
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r--app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java b/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java
new file mode 100644
index 00000000..8e1edb95
--- /dev/null
+++ b/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java
@@ -0,0 +1,37 @@
+package com.zeapo.pwdstore;
+
+import android.app.Activity;
+import android.app.Instrumentation;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.preference.PreferenceManager;
+import android.test.ActivityInstrumentationTestCase2;
+
+public class RepositoryCreation extends ActivityInstrumentationTestCase2<PasswordStore> {
+ private Activity passwordStore;
+ Instrumentation mInstrumentation;
+ SharedPreferences settings;
+
+ public RepositoryCreation() {
+ super(PasswordStore.class);
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ mInstrumentation = getInstrumentation();
+ Intent intent = new Intent();
+ setActivityIntent(intent);
+
+ passwordStore = getActivity(); // get a references to the app under test
+ assertNotNull(passwordStore);
+ settings = PreferenceManager.getDefaultSharedPreferences(passwordStore.getApplicationContext());
+ settings.edit().clear().apply();
+ }
+
+ /**
+ * If we change from ssh protocol to https we automatically switch to username/password auth
+ * @throws Exception
+ */
+ public void testSpinnerChange() throws Exception{
+ }
+}