File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010import com .somemore .community .dto .response .CommunityBoardGetResponseDto ;
1111import com .somemore .community .repository .CommunityBoardRepository ;
1212import com .somemore .community .usecase .command .CreateCommunityBoardUseCase ;
13+ import com .somemore .community .usecase .command .DeleteCommunityBoardUseCase ;
1314import com .somemore .global .exception .BadRequestException ;
1415import com .somemore .global .exception .ExceptionMessage ;
1516import com .somemore .volunteer .domain .Volunteer ;
@@ -37,6 +38,8 @@ class CommunityBoardQueryServiceTest extends IntegrationTestSupport {
3738 @ Autowired
3839 CreateCommunityBoardUseCase createCommunityBoardUseCase ;
3940 @ Autowired
41+ DeleteCommunityBoardUseCase deleteCommunityBoardUseCase ;
42+ @ Autowired
4043 CommunityBoardQueryService communityBoardQueryService ;
4144
4245 @ AfterEach
@@ -209,7 +212,7 @@ void getCommunityBoardDetailWithDeletedId() {
209212
210213 Long communityId = createCommunityBoardUseCase .createCommunityBoard (dto1 , savedVolunteer .getId (), imgUrl );
211214
212- communityBoardRepository . deleteAllInBatch ( );
215+ deleteCommunityBoardUseCase . deleteCommunityBoard ( savedVolunteer . getId (), communityId );
213216
214217 //when
215218 ThrowableAssert .ThrowingCallable callable = () -> communityBoardQueryService .getCommunityBoardDetail (communityId );
You can’t perform that action at this time.
0 commit comments