Skip to content

Commit daa2228

Browse files
committed
Restore original type labels
1 parent 480d8e7 commit daa2228

File tree

10 files changed

+21
-21
lines changed

10 files changed

+21
-21
lines changed

core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/CompositeUserNewsResourceRepositoryTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private val sampleNewsResources = listOf(
163163
url = "https://youtu.be/-fJ6poHQrjM",
164164
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
165165
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
166-
type = "Video",
166+
type = "Video 📺",
167167
topics = listOf(sampleTopic1),
168168
),
169169
NewsResource(
@@ -175,7 +175,7 @@ private val sampleNewsResources = listOf(
175175
url = "https://youtu.be/ZARz0pjm5YM",
176176
headerImageUrl = "https://i.ytimg.com/vi/ZARz0pjm5YM/maxresdefault.jpg",
177177
publishDate = Instant.parse("2021-11-01T00:00:00.000Z"),
178-
type = "Video",
178+
type = "Video 📺",
179179
topics = listOf(sampleTopic1, sampleTopic2),
180180
),
181181
NewsResource(
@@ -185,7 +185,7 @@ private val sampleNewsResources = listOf(
185185
url = "https://youtu.be/r5JgIyS3t3s",
186186
headerImageUrl = "https://i.ytimg.com/vi/r5JgIyS3t3s/maxresdefault.jpg",
187187
publishDate = Instant.parse("2021-11-08T00:00:00.000Z"),
188-
type = "Video",
188+
type = "Video 📺",
189189
topics = listOf(sampleTopic2),
190190
),
191191
)

core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/UserNewsResourceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class UserNewsResourceTest {
4444
url = "Test URL",
4545
headerImageUrl = "Test image URL",
4646
publishDate = Clock.System.now(),
47-
type = "Article",
47+
type = "Article 📚",
4848
topics = listOf(
4949
Topic(
5050
id = "T1",

core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/model/NetworkEntityKtTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class NetworkEntityKtTest {
5555
url = "url",
5656
headerImageUrl = "headerImageUrl",
5757
publishDate = Instant.fromEpochMilliseconds(1),
58-
type = "Article",
58+
type = "Article 📚",
5959
)
6060
val entity = networkModel.asEntity()
6161

@@ -65,7 +65,7 @@ class NetworkEntityKtTest {
6565
assertEquals("url", entity.url)
6666
assertEquals("headerImageUrl", entity.headerImageUrl)
6767
assertEquals(Instant.fromEpochMilliseconds(1), entity.publishDate)
68-
assertEquals("Article", entity.type)
68+
assertEquals("Article 📚", entity.type)
6969

7070
val expandedNetworkModel =
7171
NetworkNewsResourceExpanded(
@@ -75,7 +75,7 @@ class NetworkEntityKtTest {
7575
url = "url",
7676
headerImageUrl = "headerImageUrl",
7777
publishDate = Instant.fromEpochMilliseconds(1),
78-
type = "Article",
78+
type = "Article 📚",
7979
)
8080

8181
val entityFromExpanded = expandedNetworkModel.asEntity()
@@ -86,6 +86,6 @@ class NetworkEntityKtTest {
8686
assertEquals("url", entityFromExpanded.url)
8787
assertEquals("headerImageUrl", entityFromExpanded.headerImageUrl)
8888
assertEquals(Instant.fromEpochMilliseconds(1), entityFromExpanded.publishDate)
89-
assertEquals("Article", entityFromExpanded.type)
89+
assertEquals("Article 📚", entityFromExpanded.type)
9090
}
9191
}

core/data/src/test/java/com/google/samples/apps/nowinandroid/core/database/model/PopulatedNewsResourceKtTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PopulatedNewsResourceKtTest {
3232
content = "Hilt",
3333
url = "url",
3434
headerImageUrl = "headerImageUrl",
35-
type = "Video",
35+
type = "Video 📺",
3636
publishDate = Instant.fromEpochMilliseconds(1),
3737
),
3838
topics = listOf(
@@ -55,7 +55,7 @@ class PopulatedNewsResourceKtTest {
5555
content = "Hilt",
5656
url = "url",
5757
headerImageUrl = "headerImageUrl",
58-
type = "Video",
58+
type = "Video 📺",
5959
publishDate = Instant.fromEpochMilliseconds(1),
6060
topics = listOf(
6161
Topic(

core/database/src/androidTest/java/com/google/samples/apps/nowinandroid/core/database/dao/NewsResourceDaoTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,5 +304,5 @@ private fun testNewsResource(
304304
url = "",
305305
headerImageUrl = "",
306306
publishDate = Instant.fromEpochMilliseconds(millisSinceEpoch),
307-
type = "DAC",
307+
type = "Article 📚",
308308
)

core/testing/src/main/java/com/google/samples/apps/nowinandroid/core/testing/data/NewsResourcesTestData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ val newsResourcesTestData: List<NewsResource> = listOf(
4141
url = "https://youtu.be/-fJ6poHQrjM",
4242
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
4343
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
44-
type = "Video",
44+
type = "Video 📺",
4545
topics = listOf(topicsTestData[0], topicsTestData[1]),
4646
),
4747
NewsResource(
@@ -54,7 +54,7 @@ val newsResourcesTestData: List<NewsResource> = listOf(
5454
url = "https://youtu.be/ZARz0pjm5YM",
5555
headerImageUrl = "https://i.ytimg.com/vi/ZARz0pjm5YM/maxresdefault.jpg",
5656
publishDate = Instant.parse("2021-11-01T00:00:00.000Z"),
57-
type = "Video",
57+
type = "Video 📺",
5858
topics = listOf(topicsTestData[2]),
5959
),
6060
NewsResource(

core/testing/src/main/java/com/google/samples/apps/nowinandroid/core/testing/data/UserNewsResourcesTestData.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ val userNewsResourcesTestData: List<UserNewsResource> = UserData(
6969
url = "https://youtu.be/-fJ6poHQrjM",
7070
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
7171
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
72-
type = "Video",
72+
type = "Video 📺",
7373
topics = topicsTestData.take(2),
7474
),
7575
userData = userData,
@@ -85,7 +85,7 @@ val userNewsResourcesTestData: List<UserNewsResource> = UserData(
8585
url = "https://youtu.be/ZARz0pjm5YM",
8686
headerImageUrl = "https://i.ytimg.com/vi/ZARz0pjm5YM/maxresdefault.jpg",
8787
publishDate = Instant.parse("2021-11-01T00:00:00.000Z"),
88-
type = "Video",
88+
type = "Video 📺",
8989
topics = listOf(topicsTestData[2]),
9090
),
9191
userData = userData,

core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/UserNewsResourcePreviewParameterProvider.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ object PreviewParameterData {
111111
url = "https://youtu.be/-fJ6poHQrjM",
112112
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
113113
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
114-
type = "Video",
114+
type = "Video 📺",
115115
topics = topics.take(2),
116116
),
117117
userData = userData,
@@ -127,7 +127,7 @@ object PreviewParameterData {
127127
url = "https://youtu.be/ZARz0pjm5YM",
128128
headerImageUrl = "https://i.ytimg.com/vi/ZARz0pjm5YM/maxresdefault.jpg",
129129
publishDate = Instant.parse("2021-11-01T00:00:00.000Z"),
130-
type = "Video",
130+
type = "Video 📺",
131131
topics = listOf(topics[2]),
132132
),
133133
userData = userData,

feature/foryou/src/test/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouViewModelTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ private val sampleNewsResources = listOf(
544544
url = "https://youtu.be/-fJ6poHQrjM",
545545
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
546546
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
547-
type = "Video",
547+
type = "Video 📺",
548548
topics = listOf(
549549
Topic(
550550
id = "0",
@@ -565,7 +565,7 @@ private val sampleNewsResources = listOf(
565565
url = "https://youtu.be/ZARz0pjm5YM",
566566
headerImageUrl = "https://i.ytimg.com/vi/ZARz0pjm5YM/maxresdefault.jpg",
567567
publishDate = Instant.parse("2021-11-01T00:00:00.000Z"),
568-
type = "Video",
568+
type = "Video 📺",
569569
topics = listOf(
570570
Topic(
571571
id = "1",
@@ -584,7 +584,7 @@ private val sampleNewsResources = listOf(
584584
url = "https://youtu.be/r5JgIyS3t3s",
585585
headerImageUrl = "https://i.ytimg.com/vi/r5JgIyS3t3s/maxresdefault.jpg",
586586
publishDate = Instant.parse("2021-11-08T00:00:00.000Z"),
587-
type = "Video",
587+
type = "Video 📺",
588588
topics = listOf(
589589
Topic(
590590
id = "1",

feature/topic/src/test/java/com/google/samples/apps/nowinandroid/feature/topic/TopicViewModelTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ private val sampleNewsResources = listOf(
257257
url = "https://youtu.be/-fJ6poHQrjM",
258258
headerImageUrl = "https://i.ytimg.com/vi/-fJ6poHQrjM/maxresdefault.jpg",
259259
publishDate = Instant.parse("2021-11-09T00:00:00.000Z"),
260-
type = "Video",
260+
type = "Video 📺",
261261
topics = listOf(
262262
Topic(
263263
id = "0",

0 commit comments

Comments
 (0)