From f96217f8ca414bb65680f21303c36b7440c296a9 Mon Sep 17 00:00:00 2001 From: Mohamed Metwalli <mohamed.metwalli@sap.com> Date: Tue, 29 Dec 2020 20:27:33 +0100 Subject: [PATCH] Remove redundant imports and rules --- .../onboarding/screenshot/OnboardingFragmentScreenshot.kt | 2 -- .../screenshot/OnboardingPrivacyFragmentScreenshot.kt | 2 -- .../screenshot/OnboardingTestFragmentScreenshot.kt | 8 -------- 3 files changed, 12 deletions(-) diff --git a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingFragmentScreenshot.kt b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingFragmentScreenshot.kt index a1537c5b2..487b75b54 100644 --- a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingFragmentScreenshot.kt +++ b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingFragmentScreenshot.kt @@ -14,9 +14,7 @@ import org.junit.Test import org.junit.runner.RunWith import testhelpers.BaseUITest import testhelpers.Screenshot -import tools.fastlane.screengrab.DecorViewScreenshotStrategy import tools.fastlane.screengrab.Screengrab -import tools.fastlane.screengrab.UiAutomatorScreenshotStrategy import tools.fastlane.screengrab.locale.LocaleTestRule @Screenshot diff --git a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingPrivacyFragmentScreenshot.kt b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingPrivacyFragmentScreenshot.kt index 6ed200420..eacd6e955 100644 --- a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingPrivacyFragmentScreenshot.kt +++ b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingPrivacyFragmentScreenshot.kt @@ -1,9 +1,7 @@ package de.rki.coronawarnapp.ui.onboarding.screenshot -import android.Manifest import androidx.fragment.app.testing.launchFragmentInContainer import androidx.test.ext.junit.runners.AndroidJUnit4 -import androidx.test.rule.GrantPermissionRule import de.rki.coronawarnapp.R import de.rki.coronawarnapp.ui.onboarding.OnboardingPrivacyFragment import de.rki.coronawarnapp.ui.onboarding.OnboardingPrivacyViewModel diff --git a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingTestFragmentScreenshot.kt b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingTestFragmentScreenshot.kt index 73cea6b42..8f2fb6932 100644 --- a/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingTestFragmentScreenshot.kt +++ b/Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/onboarding/screenshot/OnboardingTestFragmentScreenshot.kt @@ -1,10 +1,7 @@ package de.rki.coronawarnapp.ui.onboarding.screenshot -import android.Manifest -import android.os.SystemClock import androidx.fragment.app.testing.launchFragmentInContainer import androidx.test.ext.junit.runners.AndroidJUnit4 -import androidx.test.rule.GrantPermissionRule import de.rki.coronawarnapp.R import de.rki.coronawarnapp.ui.onboarding.OnboardingTestFragment import de.rki.coronawarnapp.ui.onboarding.OnboardingTestViewModel @@ -26,11 +23,6 @@ class OnboardingTestFragmentScreenshot : BaseUITest() { @MockK lateinit var viewModel: OnboardingTestViewModel - @get:Rule val grantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant( - Manifest.permission.READ_EXTERNAL_STORAGE, - Manifest.permission.WRITE_EXTERNAL_STORAGE - ) - @Rule @JvmField val localeTestRule = LocaleTestRule() -- GitLab