Skip to content

Commit 016e62b

Browse files
committed
chore: 불필요한 import 제거
1 parent e66821f commit 016e62b

File tree

5 files changed

+16
-26
lines changed

5 files changed

+16
-26
lines changed

src/main/java/com/somemore/domains/review/dto/request/ReviewCreateRequestDto.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
package com.somemore.domains.review.dto.request;
22

3-
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
43
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
54
import com.fasterxml.jackson.databind.annotation.JsonNaming;
6-
import com.somemore.domains.volunteerapply.domain.VolunteerApply;
75
import com.somemore.domains.review.domain.Review;
86
import io.swagger.v3.oas.annotations.media.Schema;
97
import jakarta.validation.constraints.NotBlank;
108
import jakarta.validation.constraints.NotNull;
11-
import java.util.UUID;
129
import lombok.Builder;
1310

11+
import java.util.UUID;
12+
1413
@JsonNaming(SnakeCaseStrategy.class)
1514
@Builder
1615
public record ReviewCreateRequestDto(

src/main/java/com/somemore/domains/review/service/DeleteReviewService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
package com.somemore.domains.review.service;
22

33
import com.somemore.domains.review.domain.Review;
4-
import com.somemore.domains.review.repository.ReviewRepository;
54
import com.somemore.domains.review.service.validator.ReviewValidator;
65
import com.somemore.domains.review.usecase.DeleteReviewUseCase;
76
import com.somemore.domains.review.usecase.ReviewQueryUseCase;
8-
import com.somemore.global.exception.ExceptionMessage;
9-
import com.somemore.global.exception.NoSuchElementException;
107
import lombok.RequiredArgsConstructor;
118
import org.springframework.stereotype.Service;
129
import org.springframework.transaction.annotation.Transactional;

src/main/java/com/somemore/domains/review/service/UpdateReviewService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
import com.somemore.domains.review.domain.Review;
44
import com.somemore.domains.review.dto.request.ReviewUpdateRequestDto;
5-
import com.somemore.domains.review.repository.ReviewRepository;
65
import com.somemore.domains.review.service.validator.ReviewValidator;
76
import com.somemore.domains.review.usecase.ReviewQueryUseCase;
87
import com.somemore.domains.review.usecase.UpdateReviewUseCase;
9-
import com.somemore.global.exception.ExceptionMessage;
10-
import com.somemore.global.exception.NoSuchElementException;
118
import lombok.RequiredArgsConstructor;
129
import org.springframework.stereotype.Service;
1310
import org.springframework.transaction.annotation.Transactional;

src/main/java/com/somemore/domains/volunteerapply/service/VolunteerApplyQueryService.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
package com.somemore.domains.volunteerapply.service;
22

3-
import static com.somemore.global.exception.ExceptionMessage.NOT_EXISTS_VOLUNTEER_APPLY;
4-
53
import com.somemore.domains.volunteerapply.domain.VolunteerApply;
64
import com.somemore.domains.volunteerapply.dto.condition.VolunteerApplySearchCondition;
75
import com.somemore.domains.volunteerapply.dto.response.VolunteerApplyResponseDto;
86
import com.somemore.domains.volunteerapply.dto.response.VolunteerApplySummaryResponseDto;
97
import com.somemore.domains.volunteerapply.repository.VolunteerApplyRepository;
108
import com.somemore.domains.volunteerapply.usecase.VolunteerApplyQueryUseCase;
11-
import com.somemore.global.exception.ExceptionMessage;
129
import com.somemore.global.exception.NoSuchElementException;
13-
import java.util.List;
14-
import java.util.UUID;
1510
import lombok.RequiredArgsConstructor;
1611
import lombok.extern.slf4j.Slf4j;
1712
import org.springframework.data.domain.Page;
1813
import org.springframework.stereotype.Service;
1914
import org.springframework.transaction.annotation.Transactional;
2015

16+
import java.util.List;
17+
import java.util.UUID;
18+
19+
import static com.somemore.global.exception.ExceptionMessage.NOT_EXISTS_VOLUNTEER_APPLY;
20+
2121
@Slf4j
2222
@Service
2323
@RequiredArgsConstructor
@@ -35,7 +35,7 @@ public VolunteerApply getById(Long id) {
3535
@Override
3636
public VolunteerApply getByRecruitIdAndVolunteerId(Long recruitId, UUID volunteerId) {
3737
return volunteerApplyRepository.findByRecruitIdAndVolunteerId(recruitId, volunteerId).orElseThrow(
38-
() -> new NoSuchElementException(NOT_EXISTS_VOLUNTEER_APPLY));
38+
() -> new NoSuchElementException(NOT_EXISTS_VOLUNTEER_APPLY));
3939
}
4040

4141
@Override

src/test/java/com/somemore/domains/volunteerapply/service/VolunteerApplyQueryServiceTest.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
11
package com.somemore.domains.volunteerapply.service;
22

3-
import static com.somemore.domains.volunteerapply.domain.ApplyStatus.APPROVED;
4-
import static com.somemore.domains.volunteerapply.domain.ApplyStatus.REJECTED;
5-
import static com.somemore.domains.volunteerapply.domain.ApplyStatus.WAITING;
6-
import static com.somemore.global.exception.ExceptionMessage.NOT_EXISTS_VOLUNTEER_APPLY;
7-
import static org.assertj.core.api.Assertions.assertThat;
8-
import static org.assertj.core.api.Assertions.assertThatThrownBy;
9-
103
import com.somemore.domains.volunteerapply.domain.ApplyStatus;
114
import com.somemore.domains.volunteerapply.domain.VolunteerApply;
125
import com.somemore.domains.volunteerapply.dto.condition.VolunteerApplySearchCondition;
136
import com.somemore.domains.volunteerapply.dto.response.VolunteerApplyResponseDto;
147
import com.somemore.domains.volunteerapply.dto.response.VolunteerApplySummaryResponseDto;
158
import com.somemore.domains.volunteerapply.repository.VolunteerApplyRepository;
16-
import com.somemore.global.exception.ExceptionMessage;
179
import com.somemore.global.exception.NoSuchElementException;
1810
import com.somemore.support.IntegrationTestSupport;
19-
import java.util.List;
20-
import java.util.UUID;
21-
2211
import org.junit.jupiter.api.BeforeEach;
2312
import org.junit.jupiter.api.DisplayName;
2413
import org.junit.jupiter.api.Test;
@@ -28,6 +17,14 @@
2817
import org.springframework.data.domain.Pageable;
2918
import org.springframework.transaction.annotation.Transactional;
3019

20+
import java.util.List;
21+
import java.util.UUID;
22+
23+
import static com.somemore.domains.volunteerapply.domain.ApplyStatus.*;
24+
import static com.somemore.global.exception.ExceptionMessage.NOT_EXISTS_VOLUNTEER_APPLY;
25+
import static org.assertj.core.api.Assertions.assertThat;
26+
import static org.assertj.core.api.Assertions.assertThatThrownBy;
27+
3128
@Transactional
3229
class VolunteerApplyQueryServiceTest extends IntegrationTestSupport {
3330

0 commit comments

Comments
 (0)