From 5734bbe4e7e509b81c6670c8a40225997593ddef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Fri, 27 Mar 2015 13:40:12 +0100 Subject: Just coded, not tested --- .../test/testConfigurationWizard.java | 72 +++++++++++++++++++++- .../test/testDashboardIntegration.java | 2 +- 2 files changed, 71 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java index 7a19409b..c01e21c6 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java @@ -1,6 +1,14 @@ package se.leap.bitmaskclient.test; +import android.app.Instrumentation; +import android.content.Intent; +import android.graphics.drawable.Drawable; import android.test.*; +import android.view.ActionProvider; +import android.view.ContextMenu; +import android.view.MenuItem; +import android.view.SubMenu; +import android.view.View; import android.widget.*; import com.robotium.solo.*; @@ -97,14 +105,74 @@ public class testConfigurationWizard extends ActivityInstrumentationTestCase2 Date: Mon, 30 Mar 2015 17:53:50 +0200 Subject: testEveryProvider() coded and working. Calyx fails. --- app/build.gradle | 2 +- .../test/testConfigurationWizard.java | 25 ++------ .../test/testDashboardIntegration.java | 68 ++++++++++++++++++++-- 3 files changed, 71 insertions(+), 24 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 4d3c5b9c..4441cafa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,7 +39,7 @@ android { } dependencies { - androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.2.1' + androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.3.1' compile 'com.jakewharton:butterknife:6.0.0+' provided 'com.squareup.dagger:dagger-compiler:1.2.2+' compile 'com.github.pedrovgs:renderers:1.3+' diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java index c01e21c6..efb843f7 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java @@ -40,7 +40,7 @@ public class testConfigurationWizard extends ActivityInstrumentationTestCase2 Date: Mon, 30 Mar 2015 18:16:13 +0200 Subject: Cleaning moved methods. --- .../test/testConfigurationWizard.java | 51 ---------------------- 1 file changed, 51 deletions(-) diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java index efb843f7..1fa4cf2f 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java @@ -1,14 +1,6 @@ package se.leap.bitmaskclient.test; -import android.app.Instrumentation; -import android.content.Intent; -import android.graphics.drawable.Drawable; import android.test.*; -import android.view.ActionProvider; -import android.view.ContextMenu; -import android.view.MenuItem; -import android.view.SubMenu; -import android.view.View; import android.widget.*; import com.robotium.solo.*; @@ -119,47 +111,4 @@ public class testConfigurationWizard extends ActivityInstrumentationTestCase2 Date: Mon, 30 Mar 2015 18:37:39 +0200 Subject: Wait for the vpn certificate download to start vpn in test --- .../se/leap/bitmaskclient/test/testDashboardIntegration.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java index bcabc46c..d2fb9901 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java @@ -162,26 +162,28 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2