aboutsummaryrefslogtreecommitdiff
path: root/sample/src/androidTest/kotlin/ca
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-10-24 17:45:09 -0700
committerAllan Wang <me@allanwang.ca>2021-10-24 17:45:09 -0700
commit222709bc15ace77ebf03e5a8e17e0bf026520970 (patch)
tree802f80dc3e6956b9e8bdf15f4d265f3b863fa58d /sample/src/androidTest/kotlin/ca
parent8c95d32ce4a82ec00590c428d163a3604b7d44ec (diff)
downloadkau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.gz
kau-222709bc15ace77ebf03e5a8e17e0bf026520970.tar.bz2
kau-222709bc15ace77ebf03e5a8e17e0bf026520970.zip
Many version bumps
Diffstat (limited to 'sample/src/androidTest/kotlin/ca')
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt6
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/BaseTest.kt2
-rw-r--r--sample/src/androidTest/kotlin/ca/allanwang/kau/sample/test/TestModules.kt3
3 files changed, 6 insertions, 5 deletions
diff --git a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
index fb360b9..b589800 100644
--- a/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
+++ b/sample/src/androidTest/kotlin/ca/allanwang/kau/sample/KPrefViewTest.kt
@@ -28,9 +28,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import ca.allanwang.kau.sample.test.BaseTest
import dagger.hilt.android.testing.HiltAndroidTest
-import javax.inject.Inject
-import kotlin.test.assertFalse
-import kotlin.test.assertTrue
import org.hamcrest.BaseMatcher
import org.hamcrest.Description
import org.hamcrest.Matcher
@@ -41,6 +38,9 @@ import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.rules.TestRule
import org.junit.runner.RunWith
+import javax.inject.Inject
+import kotlin.test.assertFalse
+import kotlin.test.assertTrue
/**
* Created by Allan Wang on 21/12/2018.
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