@@ -77,11 +77,11 @@ class 멘토_단일_조회_성공 {
7777 Channel channel2 = channelFixture .채널 (2 , mentor );
7878
7979 // when
80- MentorDetailResponse response = mentorQueryService .getMentorDetails (mentor .getId (), siteUser .getId ());
80+ MentorDetailResponse response = mentorQueryService .getMentorDetails (mentor .getSiteUserId (), siteUser .getId ());
8181
8282 // then
8383 assertAll (
84- () -> assertThat (response .id ()).isEqualTo (mentor .getId ()),
84+ () -> assertThat (response .id ()).isEqualTo (mentor .getSiteUserId ()),
8585 () -> assertThat (response .nickname ()).isEqualTo (mentorUser .getNickname ()),
8686 () -> assertThat (response .universityName ()).isEqualTo (university .getKoreanName ()),
8787 () -> assertThat (response .country ()).isEqualTo (university .getCountry ().getKoreanName ()),
@@ -101,8 +101,8 @@ class 멘토_단일_조회_성공 {
101101 mentoringFixture .대기중_멘토링 (mentor .getId (), appliedUser .getId ());
102102
103103 // when
104- MentorDetailResponse notAppliedResponse = mentorQueryService .getMentorDetails (mentor .getId (), notAppliedUser .getId ());
105- MentorDetailResponse appliedResponse = mentorQueryService .getMentorDetails (mentor .getId (), appliedUser .getId ());
104+ MentorDetailResponse notAppliedResponse = mentorQueryService .getMentorDetails (mentor .getSiteUserId (), notAppliedUser .getId ());
105+ MentorDetailResponse appliedResponse = mentorQueryService .getMentorDetails (mentor .getSiteUserId (), appliedUser .getId ());
106106
107107 // then
108108 assertAll (
@@ -159,8 +159,8 @@ void setUp() {
159159 // then
160160 Map <Long , MentorPreviewResponse > mentorPreviewMap = response .content ().stream ()
161161 .collect (Collectors .toMap (MentorPreviewResponse ::id , Function .identity ()));
162- MentorPreviewResponse mentor1Response = mentorPreviewMap .get (mentor1 .getId ());
163- MentorPreviewResponse mentor2Response = mentorPreviewMap .get (mentor2 .getId ());
162+ MentorPreviewResponse mentor1Response = mentorPreviewMap .get (mentor1 .getSiteUserId ());
163+ MentorPreviewResponse mentor2Response = mentorPreviewMap .get (mentor2 .getSiteUserId ());
164164 assertAll (
165165 () -> assertThat (mentor1Response .nickname ()).isEqualTo (mentorUser1 .getNickname ()),
166166 () -> assertThat (mentor1Response .universityName ()).isEqualTo (university1 .getKoreanName ()),
@@ -225,10 +225,10 @@ void setUp() {
225225 assertAll (
226226 () -> assertThat (asiaFilteredResponse .content ()).hasSize (1 )
227227 .extracting (MentorPreviewResponse ::id )
228- .containsExactly (asiaMentor .getId ()),
228+ .containsExactly (asiaMentor .getSiteUserId ()),
229229 () -> assertThat (europeFilteredResponse .content ()).hasSize (1 )
230230 .extracting (MentorPreviewResponse ::id )
231- .containsExactly (europeMentor .getId ())
231+ .containsExactly (europeMentor .getSiteUserId ())
232232 );
233233 }
234234
@@ -240,7 +240,7 @@ void setUp() {
240240 // then
241241 assertThat (response .content ()).hasSize (2 )
242242 .extracting (MentorPreviewResponse ::id )
243- .containsExactlyInAnyOrder (asiaMentor .getId (), europeMentor .getId ());
243+ .containsExactlyInAnyOrder (asiaMentor .getSiteUserId (), europeMentor .getSiteUserId ());
244244 }
245245 }
246246}
0 commit comments