|
1 | 1 | package com.back.domain.mybar.controller; |
2 | 2 |
|
| 3 | +import com.back.domain.cocktail.enums.AlcoholStrength; |
3 | 4 | import com.back.domain.mybar.dto.MyBarItemResponseDto; |
4 | 5 | import com.back.domain.mybar.dto.MyBarListResponseDto; |
5 | 6 | import com.back.domain.mybar.service.MyBarService; |
@@ -105,6 +106,8 @@ void getMyBarList_withoutCursor() throws Exception { |
105 | 106 | .id(3L) |
106 | 107 | .cocktailId(10L) |
107 | 108 | .cocktailName("Margarita") |
| 109 | + .cocktailNameKo("留덇?由ы?") |
| 110 | + .alcoholStrength(AlcoholStrength.LIGHT) |
108 | 111 | .imageUrl("https://example.com/margarita.jpg") |
109 | 112 | .createdAt(createdAt) |
110 | 113 | .keptAt(keptAt) |
@@ -133,6 +136,8 @@ void getMyBarList_withoutCursor() throws Exception { |
133 | 136 | .andExpect(jsonPath("$.data.items[0].id").value(3L)) |
134 | 137 | .andExpect(jsonPath("$.data.items[0].cocktailId").value(10L)) |
135 | 138 | .andExpect(jsonPath("$.data.items[0].cocktailName").value("Margarita")) |
| 139 | + .andExpect(jsonPath("$.data.items[0].cocktailNameKo").value("留덇?由ы?")) |
| 140 | + .andExpect(jsonPath("$.data.items[0].alcoholStrength").value("LIGHT")) |
136 | 141 | .andExpect(jsonPath("$.data.items[0].imageUrl").value("https://example.com/margarita.jpg")) |
137 | 142 | .andExpect(jsonPath("$.data.items[0].createdAt").value(ISO_WITH_SECONDS.format(createdAt))) |
138 | 143 | .andExpect(jsonPath("$.data.items[0].keptAt").value(ISO_WITH_SECONDS.format(keptAt))) |
@@ -160,6 +165,8 @@ void getMyBarList_withCursor() throws Exception { |
160 | 165 | .id(20L) |
161 | 166 | .cocktailId(33L) |
162 | 167 | .cocktailName("Negroni") |
| 168 | + .cocktailNameKo("?ㅺ렇濡쒕땲") |
| 169 | + .alcoholStrength(AlcoholStrength.STRONG) |
163 | 170 | .imageUrl("https://example.com/negroni.jpg") |
164 | 171 | .createdAt(itemCreatedAt) |
165 | 172 | .keptAt(itemKeptAt) |
@@ -190,6 +197,8 @@ void getMyBarList_withCursor() throws Exception { |
190 | 197 | .andExpect(jsonPath("$.message").value("success")) |
191 | 198 | .andExpect(jsonPath("$.data.items[0].id").value(20L)) |
192 | 199 | .andExpect(jsonPath("$.data.items[0].cocktailName").value("Negroni")) |
| 200 | + .andExpect(jsonPath("$.data.items[0].cocktailNameKo").value("?ㅺ렇濡쒕땲")) |
| 201 | + .andExpect(jsonPath("$.data.items[0].alcoholStrength").value("STRONG")) |
193 | 202 | .andExpect(jsonPath("$.data.hasNext").value(false)) |
194 | 203 | .andExpect(jsonPath("$.data.nextKeptAt").doesNotExist()); |
195 | 204 |
|
|
0 commit comments