diff --git a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java index a64d8ff71..e85305b23 100644 --- a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java +++ b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/help/HelpActivityTest.java @@ -21,21 +21,13 @@ package org.kiwix.kiwixmobile.help; import android.Manifest; import android.content.Context; import android.content.Intent; -import android.support.test.espresso.IdlingRegistry; import android.support.test.espresso.ViewInteraction; 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; -import android.view.View; -import android.view.ViewGroup; -import android.view.ViewParent; import com.schibsted.spain.barista.interaction.BaristaSleepInteractions; import com.schibsted.spain.barista.rule.BaristaRule; -import org.hamcrest.Description; -import org.hamcrest.Matcher; -import org.hamcrest.TypeSafeMatcher; import org.junit.After; import org.junit.Before; import org.junit.Rule; @@ -43,29 +35,19 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.kiwix.kiwixmobile.R; import org.kiwix.kiwixmobile.intro.IntroActivity; -import org.kiwix.kiwixmobile.main.MainActivity; -import org.kiwix.kiwixmobile.splash.SplashActivity; -import org.kiwix.kiwixmobile.zim_manager.library_view.LibraryFragment; import static android.support.test.espresso.intent.matcher.IntentMatchers.hasAction; -import static android.support.test.espresso.intent.matcher.IntentMatchers.hasComponent; -import static org.hamcrest.Matchers.containsString; import static org.kiwix.kiwixmobile.testutils.Matcher.childAtPosition; import static android.support.test.InstrumentationRegistry.getInstrumentation; import static android.support.test.espresso.Espresso.onView; import static android.support.test.espresso.Espresso.openActionBarOverflowOrOptionsMenu; -import static android.support.test.espresso.Espresso.pressBack; import static android.support.test.espresso.action.ViewActions.click; -import static android.support.test.espresso.assertion.ViewAssertions.doesNotExist; import static android.support.test.espresso.assertion.ViewAssertions.matches; import static android.support.test.espresso.contrib.RecyclerViewActions.actionOnItemAtPosition; -import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed; -import static android.support.test.espresso.matcher.ViewMatchers.withClassName; import static android.support.test.espresso.matcher.ViewMatchers.withContentDescription; import static android.support.test.espresso.matcher.ViewMatchers.withId; import static android.support.test.espresso.matcher.ViewMatchers.withText; import static org.hamcrest.Matchers.allOf; -import static org.hamcrest.Matchers.is; import static android.support.test.espresso.intent.Intents.intended; import static org.hamcrest.core.IsNull.notNullValue; import static org.kiwix.kiwixmobile.testutils.TestUtils.TEST_PAUSE_MS; diff --git a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/intro/IntroActivityTest.java b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/intro/IntroActivityTest.java index b22a09c9f..45ccce6c4 100644 --- a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/intro/IntroActivityTest.java +++ b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/intro/IntroActivityTest.java @@ -19,7 +19,6 @@ package org.kiwix.kiwixmobile.intro; import android.Manifest; -import android.support.test.espresso.IdlingRegistry; import android.support.test.espresso.ViewInteraction; import android.support.test.espresso.intent.Intents; import android.support.test.rule.GrantPermissionRule; @@ -36,7 +35,6 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.kiwix.kiwixmobile.R; import org.kiwix.kiwixmobile.main.MainActivity; -import org.kiwix.kiwixmobile.zim_manager.library_view.LibraryFragment; import static android.support.test.espresso.Espresso.onView; import static android.support.test.espresso.action.ViewActions.click; 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 663b5246f..6a12da542 100644 --- a/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java +++ b/app/src/androidTestKiwix/java/org/kiwix/kiwixmobile/splash/SplashActivityTest.java @@ -20,11 +20,9 @@ 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;