diff options
author | Felix Bechstein <f@ub0r.de> | 2017-08-02 11:15:31 +0200 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-08-02 10:15:31 +0100 |
commit | e169235d961d93105f210d0c3c4dc29a21008c68 (patch) | |
tree | 1f684e80351d7b47662675485faef295ec6a281b /app/src/androidTest/java/com | |
parent | 37329a67f7f1fb009daeffa4844245be6f370ae0 (diff) |
Fix more lint (#325)
* fix/ignore lint errors, run lint on travis
* fix/ignore some lint warnings
Diffstat (limited to 'app/src/androidTest/java/com')
-rw-r--r-- | app/src/androidTest/java/com/zeapo/pwdstore/GitActivityTest.java | 1 | ||||
-rw-r--r-- | app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java | 10 |
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{ } |