diff options
Diffstat (limited to 'app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java')
| -rw-r--r-- | app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java | 10 |
1 files changed, 3 insertions, 7 deletions
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{ } |
