Skip to content

Commit 56422b5

Browse files
committed
Update Episode params
1 parent 3ab21f6 commit 56422b5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Jetcaster/core/domain/src/test/kotlin/com/example/jetcaster/core/domain/GetLatestFollowedEpisodesUseCaseTest.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import kotlinx.coroutines.flow.first
2424
import kotlinx.coroutines.test.runTest
2525
import org.junit.Assert.assertTrue
2626
import org.junit.Test
27+
import java.time.Duration
2728

2829
class GetLatestFollowedEpisodesUseCaseTest {
2930

@@ -41,18 +42,33 @@ class GetLatestFollowedEpisodesUseCaseTest {
4142
podcastUri = testPodcasts[0].podcast.uri,
4243
title = "title1",
4344
published = OffsetDateTime.MIN,
45+
subtitle = "subtitle1",
46+
summary = "summary1",
47+
author = "author1",
48+
duration = Duration.ofMinutes(1),
49+
mediaUrls = listOf("Url1"),
4450
),
4551
Episode(
4652
uri = "",
4753
podcastUri = testPodcasts[0].podcast.uri,
4854
title = "title2",
4955
published = OffsetDateTime.now(),
56+
subtitle = "subtitle2",
57+
summary = "summary2",
58+
author = "author2",
59+
duration = Duration.ofMinutes(1),
60+
mediaUrls = listOf("Url1"),
5061
),
5162
Episode(
5263
uri = "",
5364
podcastUri = testPodcasts[1].podcast.uri,
5465
title = "title3",
5566
published = OffsetDateTime.MAX,
67+
subtitle = "subtitle3",
68+
summary = "summary3",
69+
author = "author3",
70+
duration = Duration.ofMinutes(1),
71+
mediaUrls = listOf("Url1"),
5672
),
5773
)
5874

Jetcaster/core/domain/src/test/kotlin/com/example/jetcaster/core/domain/PodcastCategoryFilterUseCaseTest.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import kotlinx.coroutines.test.runTest
3030
import org.junit.Assert.assertEquals
3131
import org.junit.Assert.assertTrue
3232
import org.junit.Test
33+
import java.time.Duration
3334

3435
class PodcastCategoryFilterUseCaseTest {
3536

@@ -41,6 +42,11 @@ class PodcastCategoryFilterUseCaseTest {
4142
"",
4243
"Episode 1",
4344
published = OffsetDateTime.now(),
45+
subtitle = "subtitle1",
46+
summary = "summary1",
47+
author = "author1",
48+
duration = Duration.ofMinutes(1),
49+
mediaUrls = listOf("Url1"),
4450
)
4551
_podcasts = listOf(
4652
Podcast(
@@ -55,6 +61,11 @@ class PodcastCategoryFilterUseCaseTest {
5561
"",
5662
"Episode 2",
5763
published = OffsetDateTime.now(),
64+
subtitle = "subtitle2",
65+
summary = "summary2",
66+
author = "author2",
67+
duration = Duration.ofMinutes(1),
68+
mediaUrls = listOf("Url1"),
5869
)
5970
_podcasts = listOf(
6071
Podcast(
@@ -69,6 +80,11 @@ class PodcastCategoryFilterUseCaseTest {
6980
"",
7081
"Episode 3",
7182
published = OffsetDateTime.now(),
83+
subtitle = "subtitle3",
84+
summary = "summary3",
85+
author = "author2",
86+
duration = Duration.ofMinutes(1),
87+
mediaUrls = listOf("Url1"),
7288
)
7389
_podcasts = listOf(
7490
Podcast(

0 commit comments

Comments
 (0)