File tree Expand file tree Collapse file tree
src/test/java/com/scrolless/app/core/data/repository
src/testFixtures/kotlin/com/scrolless/app/core/domain/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,4 +114,5 @@ dependencies {
114114 // Testing
115115 testImplementation(libs.junit)
116116 testImplementation(libs.kotlinx.coroutines.test)
117+ testImplementation(testFixtures(projects.core.domain))
117118}
Original file line number Diff line number Diff line change 1616 */
1717package com.scrolless.app.core.data.repository
1818
19- import com.scrolless.app.core.data.repository .utils.TestSchedulerTimeProvider
19+ import com.scrolless.app.core.domain .utils.TestSchedulerTimeProvider
2020import com.scrolless.app.core.model.BlockableApp
2121import com.scrolless.app.core.model.SessionSegment
2222import com.scrolless.app.core.repository.SessionSegmentStore
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -68,6 +68,11 @@ android {
6868 sourceCompatibility = JavaVersion .VERSION_17
6969 targetCompatibility = JavaVersion .VERSION_17
7070 }
71+
72+ @Suppress(" UnstableApiUsage" )
73+ testFixtures {
74+ enable = true
75+ }
7176}
7277
7378kotlin {
@@ -92,4 +97,6 @@ dependencies {
9297 // Testing
9398 testImplementation(libs.junit)
9499 testImplementation(libs.kotlinx.coroutines.test)
100+
101+ testFixturesApi(libs.kotlinx.coroutines.test)
95102}
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ import java.time.ZoneId
2424import kotlinx.coroutines.ExperimentalCoroutinesApi
2525import kotlinx.coroutines.test.TestCoroutineScheduler
2626
27- // Same as com.scrolless.app.core.TestSchedulerTimeProvider
2827@OptIn(ExperimentalCoroutinesApi ::class )
2928class TestSchedulerTimeProvider (private val scheduler : TestCoroutineScheduler ) : TimeProvider {
3029 override fun currentTimeInMillis () = scheduler.currentTime
You can’t perform that action at this time.
0 commit comments