diff options
Diffstat (limited to 'sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test')
-rw-r--r-- | sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt | 2 | ||||
-rw-r--r-- | sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt index 1cba88f..0c63897 100644 --- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt +++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt @@ -16,8 +16,8 @@ package ca.allanwang.kau.sample.test import dagger.hilt.android.testing.HiltAndroidRule -import kotlin.test.BeforeTest import org.junit.Rule +import kotlin.test.BeforeTest abstract class BaseTest { @Suppress("LeakingThis") diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt index 1615d2f..aef1060 100644 --- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt +++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt @@ -26,7 +26,8 @@ import dagger.hilt.testing.TestInstallIn @Module @TestInstallIn( components = [SingletonComponent::class], - replaces = [PrefFactoryModule::class]) + replaces = [PrefFactoryModule::class] +) object PrefFactoryTestModule { @Provides fun factory(): KPrefFactory = KPrefFactoryInMemory |