summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r--app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java1
-rw-r--r--app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java10
2 files changed, 3 insertions, 8 deletions
diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java b/app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java
index 6073c211..29684755 100644
--- a/app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java
+++ b/app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java
@@ -55,7 +55,6 @@ public class GitActivityTest extends ActivityInstrumentationTestCase2<GitActivit
/**
* If we change from ssh protocol to https we automatically switch to username/password auth
- * @throws Exception
*/
public void testSpinnerChange() throws Exception{
gitActivity.runOnUiThread(new Runnable() {
diff --git a/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java b/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java
index 8e1edb95..63c77e3a 100644
--- a/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java
+++ b/app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java
@@ -8,9 +8,6 @@ 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);
@@ -18,19 +15,18 @@ public class RepositoryCreation extends ActivityInstrumentationTestCase2<Passwor
protected void setUp() throws Exception {
super.setUp();
- mInstrumentation = getInstrumentation();
+ Instrumentation mInstrumentation = getInstrumentation();
Intent intent = new Intent();
setActivityIntent(intent);
- passwordStore = getActivity(); // get a references to the app under test
+ Activity passwordStore = getActivity();
assertNotNull(passwordStore);
- settings = PreferenceManager.getDefaultSharedPreferences(passwordStore.getApplicationContext());
+ SharedPreferences 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{
}