File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ void getAllCommunityBoards() {
8585 List <CommunityBoardGetResponseDto > dtos = communityBoardQueryService .getCommunityBoards ();
8686
8787 // then
88- Optional <CommunityBoard > communityBoard1 = communityBoardRepository .findById (communityId1 );
89- Optional <CommunityBoard > communityBoard2 = communityBoardRepository .findById (communityId2 );
88+ Optional <CommunityBoard > communityBoard1 = communityBoardRepository .getCommunityBoardWithId (communityId1 );
89+ Optional <CommunityBoard > communityBoard2 = communityBoardRepository .getCommunityBoardWithId (communityId2 );
9090
9191
9292 assertThat (dtos )
@@ -135,8 +135,8 @@ void getCommunityBoardsByWriter() {
135135 List <CommunityBoardGetResponseDto > dtos = communityBoardQueryService .getCommunityBoardsByWriterId (volunteer .getId ());
136136
137137 //then
138- Optional <CommunityBoard > communityBoard1 = communityBoardRepository .findById (communityId1 );
139- Optional <CommunityBoard > communityBoard2 = communityBoardRepository .findById (communityId2 );
138+ Optional <CommunityBoard > communityBoard1 = communityBoardRepository .getCommunityBoardWithId (communityId1 );
139+ Optional <CommunityBoard > communityBoard2 = communityBoardRepository .getCommunityBoardWithId (communityId2 );
140140
141141 assertThat (dtos )
142142 .isNotNull ()
You can’t perform that action at this time.
0 commit comments