This repository was archived by the owner on Jan 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app/src/test/java/com/android/example/paging/pagingwithnetwork/reddit/repository Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.android.example.paging.pagingwithnetwork.reddit.repository.inMemory.b
8
8
import com.android.example.paging.pagingwithnetwork.repository.FakeRedditApi
9
9
import com.android.example.paging.pagingwithnetwork.repository.PostFactory
10
10
import kotlinx.coroutines.ExperimentalCoroutinesApi
11
- import kotlinx.coroutines.test.runBlockingTest
11
+ import kotlinx.coroutines.test.runTest
12
12
import org.junit.Test
13
13
import kotlin.test.assertEquals
14
14
@@ -25,7 +25,7 @@ class SubredditPagingSourceTest {
25
25
}
26
26
27
27
@Test
28
- fun itemKeyedSubredditPagingSource () = runBlockingTest {
28
+ fun itemKeyedSubredditPagingSource () = runTest {
29
29
val pagingSource = ItemKeyedSubredditPagingSource (fakeApi, DEFAULT_SUBREDDIT )
30
30
assertEquals(
31
31
expected = Page (
@@ -44,7 +44,7 @@ class SubredditPagingSourceTest {
44
44
}
45
45
46
46
@Test
47
- fun pageKeyedSubredditPagingSource () = runBlockingTest {
47
+ fun pageKeyedSubredditPagingSource () = runTest {
48
48
val pagingSource = PageKeyedSubredditPagingSource (fakeApi, DEFAULT_SUBREDDIT )
49
49
assertEquals(
50
50
expected = Page (
Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ versions.benchmark = "1.1.0-alpha01"
35
35
versions. cardview = " 1.0.0"
36
36
versions. constraint_layout = " 2.0.0-alpha2"
37
37
versions. core_ktx = " 1.1.0"
38
- versions. coroutines = " 1.4.1 "
38
+ versions. coroutines = " 1.6.0 "
39
39
versions. dagger = " 2.16"
40
40
versions. dexmaker = " 2.2.0"
41
41
versions. espresso = " 3.2.0"
42
42
versions. fragment = " 1.2.0"
43
43
versions. glide = " 4.8.0"
44
44
versions. hamcrest = " 1.3"
45
45
versions. junit = " 4.12"
46
- versions. kotlin = " 1.4.21 "
46
+ versions. kotlin = " 1.6.10 "
47
47
versions. lifecycle = " 2.2.0"
48
48
versions. material = " 1.0.0"
49
49
versions. mockito = " 2.25.0"
You can’t perform that action at this time.
0 commit comments