99import com .somemore .community .dto .response .CommunityBoardGetDetailResponseDto ;
1010import com .somemore .community .dto .response .CommunityBoardGetResponseDto ;
1111import com .somemore .community .repository .CommunityBoardRepository ;
12- import com .somemore .community .service .command .CreateCommunityBoardService ;
12+ import com .somemore .community .usecase .command .CreateCommunityBoardUseCase ;
1313import com .somemore .global .exception .BadRequestException ;
1414import com .somemore .global .exception .ExceptionMessage ;
1515import com .somemore .volunteer .domain .Volunteer ;
@@ -35,7 +35,7 @@ class CommunityBoardQueryServiceTest extends IntegrationTestSupport {
3535 @ Autowired
3636 CenterRepository centerRepository ;
3737 @ Autowired
38- CreateCommunityBoardService createCommunityBoardService ;
38+ CreateCommunityBoardUseCase createCommunityBoardUseCase ;
3939 @ Autowired
4040 CommunityBoardQueryService communityBoardQueryService ;
4141
@@ -52,7 +52,7 @@ void getAllCommunityBoards() {
5252 String oAuthId = "example-oauth-id" ;
5353 Volunteer volunteer = Volunteer .createDefault (OAuthProvider .NAVER , oAuthId );
5454
55- Volunteer savedVolunteer = volunteerRepository .save (volunteer );
55+ Volunteer savedVolunteer = volunteerRepository .save (volunteer );
5656
5757 Center center = Center .create (
5858 "기본 기관 이름" ,
@@ -78,8 +78,8 @@ void getAllCommunityBoards() {
7878
7979 String imgUrl1 = "https://image.test.url/123" ;
8080
81- Long communityId1 = createCommunityBoardService .createCommunityBoard (dto1 , savedCenter .getId (), null );
82- Long communityId2 = createCommunityBoardService .createCommunityBoard (dto2 , savedVolunteer .getId (), imgUrl1 );
81+ Long communityId1 = createCommunityBoardUseCase .createCommunityBoard (dto1 , savedCenter .getId (), null );
82+ Long communityId2 = createCommunityBoardUseCase .createCommunityBoard (dto2 , savedVolunteer .getId (), imgUrl1 );
8383
8484 // when
8585 List <CommunityBoardGetResponseDto > dtos = communityBoardQueryService .getCommunityBoards ();
@@ -128,8 +128,8 @@ void getCommunityBoardsByWriter() {
128128
129129 String imgUrl1 = "https://image.test.url/123" ;
130130
131- Long communityId1 = createCommunityBoardService .createCommunityBoard (dto1 , savedVolunteer .getId (), null );
132- Long communityId2 = createCommunityBoardService .createCommunityBoard (dto2 , savedVolunteer .getId (), imgUrl1 );
131+ Long communityId1 = createCommunityBoardUseCase .createCommunityBoard (dto1 , savedVolunteer .getId (), null );
132+ Long communityId2 = createCommunityBoardUseCase .createCommunityBoard (dto2 , savedVolunteer .getId (), imgUrl1 );
133133
134134 //when
135135 List <CommunityBoardGetResponseDto > dtos = communityBoardQueryService .getCommunityBoardsByWriterId (volunteer .getId ());
@@ -172,7 +172,7 @@ void getCommunityBoardDetail() {
172172
173173 String imgUrl = "https://image.test.url/123" ;
174174
175- Long communityId1 = createCommunityBoardService .createCommunityBoard (dto1 , savedVolunteer .getId (), imgUrl );
175+ Long communityId1 = createCommunityBoardUseCase .createCommunityBoard (dto1 , savedVolunteer .getId (), imgUrl );
176176
177177 //when
178178 CommunityBoardGetDetailResponseDto communityBoard = communityBoardQueryService .getCommunityBoardDetail (communityId1 );
@@ -207,7 +207,7 @@ void getCommunityBoardDetailWithDeletedId() {
207207
208208 String imgUrl = "https://image.test.url/123" ;
209209
210- Long communityId = createCommunityBoardService .createCommunityBoard (dto1 , savedVolunteer .getId (), imgUrl );
210+ Long communityId = createCommunityBoardUseCase .createCommunityBoard (dto1 , savedVolunteer .getId (), imgUrl );
211211
212212 communityBoardRepository .deleteAllInBatch ();
213213
0 commit comments