-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#11 #13
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/#11 #13
Conversation
Code Format Check ✅
|
Darren4641
left a comment
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.
@koosco Comment 남겼습니다!
src/main/kotlin/com/yapp2app/photo/application/usecase/DeleteFolderUseCase.kt
Outdated
Show resolved
Hide resolved
src/main/resources/db/migration/V2__create_folder_and_photo_image_tables.sql
Show resolved
Hide resolved
회사에서 저두 이런식으로 Customer에 대해서 테스트 했더니 중복된 코드가 많이 사라져서 좋았습니다! 이대로 가도 좋을 것 같아요~ |
Code Format Check ✅
|
Code Format Check ✅
|
Darren4641
left a comment
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.
고생하셨습니다! LGTM
Summary
Details
jasypt 설정을 spring test profile에서 제거
테스트 편의를 위해 test 환경에서 jasypt bean을 초기화하지 않도록 변경하였습니다.
BaseTimeEntity 추가 (생성일, 수정일)
jpa 엔티티를 도메인 모델로 사용하고 있어 common/domain 하위에 위치시켰습니다. 기존 User Entity도 적용이 필요합니다.
JpaAuditingConfig 추가
FakeS3Media 추가
test profile에서 S3 bean 초기화용 Fake 객체입니다. 이미지 업로드 E2E Test가 필요한 경우 testcontainer + localstack으로 변경 가능합니다. 현재는 S3 관련 E2E Test를 포함하지 않고 있어 Fake bean을 선언하였습니다.
Folder CRUD API 추가
기본적인 중복 검사를 추가하였습니다. Port의 메서드 시그니처에서 최대한 드러내지 않도록 메서드명을 수정하였습니다.
e.g)
c..c 메서드 시그니처에 대해서는 논의를 통해 얘기해보면 좋을 것 같습니다. @Darren4641
Folder, PhotoImage 엔티티 추가
PhotoImage는 Folder의 연관관계를 나타내기 위해 임시로 추가한 엔티티로, 추후 변동될 가능성이 높습니다.
Folder가 삭제될 때 포함되는 사진들을 폴더에서 제거하기 위한 목적으로 OneToMany를 정의하였습니다.
E2E Test를 위한 TestBase 추가
E2E Test를 진행할 때 대부분의 API Test에 사용자 생성과 토큰 발행 과정이 포함될 것이라 판단하여 TestBase를 만들었습니다. 테스트를 진행할 때는 TestBase를 상속하여 사용하면 됩니다.
e.g.
aggregate에 대한 반복 코드가 필요한 경우 E2ETestBase를 상속받은 TestBase를 만들어 사용할 수 있습니다.
c.c. 이 방식은 처음 사용해보는건데 어떤지 의견 여쭙고 싶습니다. @Darren4641
변경 내역이 많기 때문에 PR merge시 squash merge 부탁드립니다.
Code 리뷰 반영