11package com .example .solidconnection .mentor .service ;
22
3+ import com .example .solidconnection .common .dto .SliceResponse ;
34import com .example .solidconnection .common .exception .CustomException ;
45import com .example .solidconnection .common .exception .ErrorCode ;
56import com .example .solidconnection .mentor .domain .Channel ;
67import com .example .solidconnection .mentor .domain .Mentor ;
78import com .example .solidconnection .mentor .dto .ChannelResponse ;
89import com .example .solidconnection .mentor .dto .MentorDetailResponse ;
910import com .example .solidconnection .mentor .dto .MentorPreviewResponse ;
10- import com .example .solidconnection .mentor .dto .MentorPreviewsResponse ;
1111import com .example .solidconnection .mentor .fixture .ChannelFixture ;
1212import com .example .solidconnection .mentor .fixture .MentorFixture ;
1313import com .example .solidconnection .mentor .fixture .MentoringFixture ;
@@ -136,7 +136,7 @@ void setUp() {
136136 Channel channel2 = channelFixture .채널 (2 , mentor2 );
137137
138138 // when
139- MentorPreviewsResponse response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
139+ SliceResponse < MentorPreviewResponse > response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
140140
141141 // then
142142 Map <Long , MentorPreviewResponse > mentorPreviewMap = response .content ().stream ()
@@ -160,7 +160,7 @@ void setUp() {
160160 mentoringFixture .대기중_멘토링 (mentor1 .getId (), currentUser .getId ());
161161
162162 // when
163- MentorPreviewsResponse response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
163+ SliceResponse < MentorPreviewResponse > response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
164164
165165 // then
166166 Map <Long , MentorPreviewResponse > mentorPreviewMap = response .content ().stream ()
@@ -174,7 +174,7 @@ void setUp() {
174174 @ Test
175175 void 다음_페이지_번호를_응답한다 () {
176176 // given
177- MentorPreviewsResponse response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 1 ));
177+ SliceResponse < MentorPreviewResponse > response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 1 ));
178178
179179 // then
180180 assertThat (response .nextPageNumber ()).isEqualTo (2 );
@@ -183,7 +183,7 @@ void setUp() {
183183 @ Test
184184 void 다음_페이지가_없으면_페이지_없음을_의미하는_값을_응답한다 () {
185185 // given
186- MentorPreviewsResponse response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
186+ SliceResponse < MentorPreviewResponse > response = mentorQueryService .getMentorPreviews (region , currentUser , PageRequest .of (0 , 10 ));
187187
188188 // then
189189 assertThat (response .nextPageNumber ()).isEqualTo (NO_NEXT_PAGE_NUMBER );
0 commit comments