aboutsummaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
diff options
context:
space:
mode:
authorFelix Bechstein <f@ub0r.de>2017-08-02 11:15:31 +0200
committerMohamed Zenadi <zeapo@users.noreply.github.com>2017-08-02 10:15:31 +0100
commite169235d961d93105f210d0c3c4dc29a21008c68 (patch)
tree1f684e80351d7b47662675485faef295ec6a281b /app/src/androidTest/java
parent37329a67f7f1fb009daeffa4844245be6f370ae0 (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')
-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{
}