From cd247d0f45b403f86b147dbc02092bfeb1aa064f Mon Sep 17 00:00:00 2001 From: siddharth2010 Date: Sat, 30 Jun 2018 11:14:46 +0530 Subject: [PATCH] tests generated intent --- .../java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java index 7596bc5db..67af4fd39 100644 --- a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java +++ b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java @@ -20,9 +20,11 @@ package org.kiwix.kiwixmobile.splash; import android.Manifest; import android.content.Context; +import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.support.test.espresso.intent.Intents; +import android.support.test.rule.ActivityTestRule; import android.support.test.rule.GrantPermissionRule; import android.support.test.runner.AndroidJUnit4; import android.test.suitebuilder.annotation.LargeTest; @@ -87,7 +89,7 @@ public class SplashActivityTest { BaristaSleepInteractions.sleep(TEST_PAUSE_MS); // Verify that the SplashActivity is followed by MainActivity - //intended(hasComponent(MainActivity.class.getName())); + intended(hasComponent(MainActivity.class.getName())); Intents.release(); } } \ No newline at end of file