Skip to content

Commit

Permalink
test: 데이터 세팅 로직 수정(#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
whereami2048 committed May 21, 2024
1 parent 3b2f7ba commit ad2987a
Showing 1 changed file with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,32 @@ class ExperienceControllerTest : BaseRestDocsTest() {
@DisplayName("유저의 경험 내 존재하는 연도들을 중복 제거한 리스트를 반환한다.")
fun getExperienceYearsTest() {
//given
val years = arrayListOf(2020,2021,2023, 2024, 2025)
val tagDetails = arrayListOf(
ExperienceYear.TagDetail(
UUID.randomUUID(),
"태그 상세 1"
),
ExperienceYear.TagDetail(
UUID.randomUUID(),
"태그 상세 1"
)
)

val yearTagInfos = arrayListOf(
ExperienceYear.YearTagInfo(
2023,
tagDetails
),
ExperienceYear.YearTagInfo(
2024,
tagDetails
)
)

val years = arrayListOf(2023, 2024)
val yearResponse = ExperienceYear.Response(
years,
generateFixture()
yearTagInfos
)

given(experienceGetService.getAllYearsByExistExperience()).willReturn(yearResponse)
Expand Down

0 comments on commit ad2987a

Please sign in to comment.