test(recommend): 홈 추천 신규 필드 테스트 픽스처를 보강한다
This commit is contained in:
@@ -154,6 +154,7 @@ class HomeRecommendationQueryServiceTest {
|
|||||||
characterId = 1L,
|
characterId = 1L,
|
||||||
name = "character-1",
|
name = "character-1",
|
||||||
description = "description-1",
|
description = "description-1",
|
||||||
|
profileImage = "profile/character-1.png",
|
||||||
totalChatCount = 3L,
|
totalChatCount = 3L,
|
||||||
originalWorkTitle = "original-work"
|
originalWorkTitle = "original-work"
|
||||||
),
|
),
|
||||||
@@ -161,6 +162,7 @@ class HomeRecommendationQueryServiceTest {
|
|||||||
characterId = 2L,
|
characterId = 2L,
|
||||||
name = "character-2",
|
name = "character-2",
|
||||||
description = "description-2",
|
description = "description-2",
|
||||||
|
profileImage = null,
|
||||||
totalChatCount = 0L,
|
totalChatCount = 0L,
|
||||||
originalWorkTitle = null
|
originalWorkTitle = null
|
||||||
)
|
)
|
||||||
@@ -170,6 +172,8 @@ class HomeRecommendationQueryServiceTest {
|
|||||||
|
|
||||||
assertEquals((1L..10L).toList(), port.aiCharacterDetailIds)
|
assertEquals((1L..10L).toList(), port.aiCharacterDetailIds)
|
||||||
assertEquals(listOf(1L, 2L), characters.map { it.characterId })
|
assertEquals(listOf(1L, 2L), characters.map { it.characterId })
|
||||||
|
assertEquals("profile/character-1.png", characters.first().profileImage)
|
||||||
|
assertEquals(null, characters.last().profileImage)
|
||||||
assertEquals("original-work", characters.first().originalWorkTitle)
|
assertEquals("original-work", characters.first().originalWorkTitle)
|
||||||
assertEquals(null, characters.last().originalWorkTitle)
|
assertEquals(null, characters.last().originalWorkTitle)
|
||||||
}
|
}
|
||||||
@@ -488,6 +492,7 @@ class HomeRecommendationQueryServiceTest {
|
|||||||
title = "first-audio",
|
title = "first-audio",
|
||||||
coverImage = "first-audio.png",
|
coverImage = "first-audio.png",
|
||||||
releaseDate = LocalDateTime.of(2026, 5, 30, 10, 0),
|
releaseDate = LocalDateTime.of(2026, 5, 30, 10, 0),
|
||||||
|
isPointAvailable = true,
|
||||||
recencyScore = 100,
|
recencyScore = 100,
|
||||||
randomTieBreaker = 0.3
|
randomTieBreaker = 0.3
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user