From 679d7f111e295d3a2b90ebafa8c4149d868bf30f Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sat, 20 Jun 2015 17:10:51 +0200 Subject: version bump --- app/build.gradle | 4 +-- .../com/zeapo/pwdstore/RepositoryCreation.java | 37 ++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 app/src/androidTest/java/com/zeapo/pwdstore/RepositoryCreation.java diff --git a/app/build.gradle b/app/build.gradle index 468f5c87..7d2bd5fd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "com.zeapo.pwdstore" minSdkVersion 15 targetSdkVersion 22 - versionCode 42 - versionName "1.2.0.22" + versionCode 43 + versionName "1.2.0.23" } compileOptions { 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 { + 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{ + } +} -- cgit v1.2.3