From 45b0c2ab5466c9de137a90ed5567f07dcdc90891 Mon Sep 17 00:00:00 2001 From: Simon Marquis Date: Thu, 11 Jul 2024 23:44:35 +0200 Subject: [PATCH] Remove `TemporaryFolder` JUnit rule in instrumented test --- .../ui/interests2pane/InterestsListDetailScreenTest.kt | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreenTest.kt b/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreenTest.kt index 21ac3e920..efef242f5 100644 --- a/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreenTest.kt +++ b/app/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/ui/interests2pane/InterestsListDetailScreenTest.kt @@ -36,7 +36,6 @@ import com.google.samples.apps.nowinandroid.core.designsystem.theme.NiaTheme import com.google.samples.apps.nowinandroid.core.model.data.Topic import com.google.samples.apps.nowinandroid.ui.stringResource import com.google.samples.apps.nowinandroid.uitesthiltmanifest.HiltComponentActivity -import dagger.hilt.android.testing.BindValue import dagger.hilt.android.testing.HiltAndroidRule import dagger.hilt.android.testing.HiltAndroidTest import kotlinx.coroutines.flow.first @@ -44,7 +43,6 @@ import kotlinx.coroutines.runBlocking import org.junit.Before import org.junit.Rule import org.junit.Test -import org.junit.rules.TemporaryFolder import javax.inject.Inject import kotlin.test.assertTrue import com.google.samples.apps.nowinandroid.feature.topic.R as FeatureTopicR @@ -54,11 +52,7 @@ class InterestsListDetailScreenTest { @get:Rule(order = 0) val hiltRule = HiltAndroidRule(this) - @BindValue @get:Rule(order = 1) - val tmpFolder: TemporaryFolder = TemporaryFolder.builder().assureDeletion().build() - - @get:Rule(order = 2) val composeTestRule = createAndroidComposeRule() @Inject