File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/test/java/eatda/service/story Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2828import org .springframework .mock .web .MockMultipartFile ;
2929import org .springframework .web .multipart .MultipartFile ;
3030
31- public class StoryServiceTest extends BaseServiceTest {
31+ class StoryServiceTest extends BaseServiceTest {
3232
3333 @ Autowired
3434 private StoryService storyService ;
@@ -247,7 +247,7 @@ class GetPagedStoryDetails {
247247 .build ();
248248 Story story2 = Story .builder ()
249249 .member (member )
250- .storeKakaoId ("drifferent -kakao-id" )
250+ .storeKakaoId ("different -kakao-id" )
251251 .storeName ("순대국밥집" )
252252 .storeRoadAddress ("서울시 성동구 왕십리로 1길 12" )
253253 .storeLotNumberAddress ("서울시 성동구 성수동1가 685-12" )
@@ -270,4 +270,13 @@ class GetPagedStoryDetails {
270270 .containsExactlyInAnyOrder (story1 .getId ());
271271 }
272272 }
273+
274+ @ Test
275+ void 존재하지_않는_카카오ID로_조회하면_빈_목록을_반환한다 () {
276+ String nonExistentKakaoId = "non-existent" ;
277+
278+ var response = storyService .getPagedStoryDetails (nonExistentKakaoId , 5 );
279+
280+ assertThat (response .stories ()).isEmpty ();
281+ }
273282}
You can’t perform that action at this time.
0 commit comments