-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Event 엔티티와 서비스 구현 추가 #4
feat: Event 엔티티와 서비스 구현 추가 #4
Conversation
- Event 엔티티와 EventStatus Enum 추가 - EventService와 EventServiceImpl 구현 - EventServiceImpl 단위 테스트 추가
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앞으로 merge는 코드리뷰 approve후에만 하시는 것으로 생각하시면 됩니다.
private Long id; | ||
|
||
private String name; | ||
private String date_time; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
날짜 시간은 String보다 관련 객체 사용을 추천드립니다.
변수 이름도 자바의 camel case사용을 권장드립니다.
} | ||
|
||
@Builder | ||
public Event(Long id, String name, String date_time, String location, EventStatus status, LocalDateTime created_at, LocalDateTime updated_at) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
위 생성자를 불러서 코드의 중복을 줄일 수 있을 것으로 보입니다.
import static org.mockito.Mockito.when; | ||
|
||
@ExtendWith(MockitoExtension.class) | ||
public class EventServiceImplTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
예외 발생 상황 테스트 추가 하시면 좋습니다.
넵 알겠습니다! 수정된 코드들을 다시 브랜치 생성하여 PR 요청하겠습니다. |
📌 변경 사항