diff options
author | Parménides GV <parmegv@sdf.org> | 2015-01-02 13:47:09 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2015-01-02 13:47:09 +0100 |
commit | 3229c824b3d7935388abacb9fa578c27800c5c49 (patch) | |
tree | 827403fe527c50e61299b5b42dbc39e55b65ed39 /app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java | |
parent | 44b59b984f76da62d409b585047224cb1e958016 (diff) | |
parent | 38fdfbdacf414ab85fffd833f57e5fc93b03ad4f (diff) |
Merge branch 'bug/Bitmask-gets-killed-problems-when-trying-to-restart-it-#6586' into develop
Diffstat (limited to 'app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java')
-rw-r--r-- | app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java | 13 |
1 files changed, 13 insertions, 0 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 94cb67a3..0c7db284 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java @@ -9,6 +9,10 @@ import android.test.ActivityInstrumentationTestCase2; import android.util.Log; import com.robotium.solo.Solo; +import java.io.IOException; +import java.io.InputStream; +import java.util.Scanner; + import de.blinkt.openvpn.activities.DisconnectVPN; import se.leap.bitmaskclient.ConfigurationWizard; import se.leap.bitmaskclient.Dashboard; @@ -150,4 +154,13 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2<D "-----END CERTIFICATE-----"; } + + public void testReboot() { + try { + String command = "adb shell am broadcast -a android.intent.action.BOOT_COMPLETED"; + Runtime.getRuntime().exec(command); + } catch (IOException e) { + e.printStackTrace(); + } + } } |