Skip to content

Commit 0a7ac42

Browse files
committed
Apollo 5.0.0-alpha.1.
1 parent 4047375 commit 0a7ac42

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gradle-toolchainsResolverPlugin = "1.0.0"
77
appVersioning = "1.5.0"
88
paparazzi = "2.0.0-alpha02"
99
testParameterInjector = "1.18"
10-
apollo = "4.3.1"
10+
apollo = "5.0.0-alpha.1"
1111
apollo-adapters = "0.7.0"
1212
apollo-mockserver = "0.1.1"
1313
googleServices = "4.4.3"

kmp/remote/cloud/src/commonTest/kotlin/io/github/reactivecircus/kstreamlined/kmp/remote/CloudFeedServiceTest.kt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ import io.github.reactivecircus.kstreamlined.graphql.FeedEntriesQuery
1414
import io.github.reactivecircus.kstreamlined.graphql.FeedEntriesWithSourcesQuery
1515
import io.github.reactivecircus.kstreamlined.graphql.FeedSourcesQuery
1616
import io.github.reactivecircus.kstreamlined.graphql.KotlinWeeklyIssueQuery
17+
import io.github.reactivecircus.kstreamlined.graphql.builder.Data
18+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildFeedSource
19+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinBlog
20+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinWeeklyIssueEntry
21+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinYouTube
22+
import io.github.reactivecircus.kstreamlined.graphql.builder.resolver.DefaultFakeResolver
1723
import io.github.reactivecircus.kstreamlined.graphql.type.KotlinWeeklyIssueEntryGroup
18-
import io.github.reactivecircus.kstreamlined.graphql.type.buildFeedSource
19-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinBlog
20-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinWeeklyIssueEntry
21-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinYouTube
2224
import io.github.reactivecircus.kstreamlined.kmp.remote.mapper.asExternalModel
2325
import kotlinx.coroutines.runBlocking
2426
import kotlinx.coroutines.test.runTest
@@ -36,7 +38,7 @@ class CloudFeedServiceTest {
3638

3739
private lateinit var cloudFeedService: CloudFeedService
3840

39-
private val dummyFeedSources = FeedSourcesQuery.Data {
41+
private val dummyFeedSources = FeedSourcesQuery.Data(resolver = DefaultFakeResolver()) {
4042
feedSources = listOf(
4143
buildFeedSource {
4244
title = "Kotlin Blog"
@@ -47,7 +49,7 @@ class CloudFeedServiceTest {
4749
)
4850
}.feedSources
4951

50-
private val dummyFeedEntries = FeedEntriesQuery.Data {
52+
private val dummyFeedEntries = FeedEntriesQuery.Data(resolver = DefaultFakeResolver()) {
5153
feedEntries = listOf(
5254
buildKotlinBlog {
5355
title = "Kotlin blog entry"
@@ -60,7 +62,7 @@ class CloudFeedServiceTest {
6062
)
6163
}.feedEntries
6264

63-
private val dummyKotlinWeeklyEntries = KotlinWeeklyIssueQuery.Data {
65+
private val dummyKotlinWeeklyEntries = KotlinWeeklyIssueQuery.Data(resolver = DefaultFakeResolver()) {
6466
kotlinWeeklyIssue = listOf(
6567
buildKotlinWeeklyIssueEntry {
6668
title = "Kotlin Weekly entry 1"

kmp/remote/cloud/src/commonTest/kotlin/io/github/reactivecircus/kstreamlined/kmp/remote/mapper/FeedEntryMappersTest.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
package io.github.reactivecircus.kstreamlined.kmp.remote.mapper
22

33
import io.github.reactivecircus.kstreamlined.graphql.FeedEntriesQuery
4-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinBlog
5-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinWeekly
6-
import io.github.reactivecircus.kstreamlined.graphql.type.buildKotlinYouTube
7-
import io.github.reactivecircus.kstreamlined.graphql.type.buildTalkingKotlin
4+
import io.github.reactivecircus.kstreamlined.graphql.builder.Data
5+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinBlog
6+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinWeekly
7+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildKotlinYouTube
8+
import io.github.reactivecircus.kstreamlined.graphql.builder.buildTalkingKotlin
89
import io.github.reactivecircus.kstreamlined.kmp.remote.model.FeedEntry
910
import kotlin.test.Test
1011
import kotlin.test.assertEquals

0 commit comments

Comments
 (0)