-
Notifications
You must be signed in to change notification settings - Fork 2
Order 도메인 리팩터링 및 단위 테스트 추가 #119
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
개발 버전에서 WaitingOrders, WaitingOrdersMaanger로 성공을 확인했기 때문에, 기존 deprecated 클래스를 제거합니다
개발 버전에서 WaitingOrders, WaitingOrdersMaanger로 성공을 확인했기 때문에, 기존 deprecated 클래스를 제거합니다
공통 생성 로직을 super 클래스에 끌어올렸습니다. remainingSize 수정 메서드를 super 클래스에 끌어올렸습니다. validationError 기반으로 exception을 반환하는 기능을 super 클래스에 끌어올렸습니다. 상태변화 메서드에 대한 null체크를 추가했습니다.
Order 도메인의 엔티티들에 대한 단위 테스트를 추가했습니다.
…cleanengine-be into feat/order-unittest
Account, Wallet의 의존성을 불필요하게 분리했던 점을 수정했습니다. Order, Wallet, Account는 하나의 트랜잭션에서 강하게 일관성이 필요한 점을 고려했습니다.
NotNull과 같은 개발자의 추가적인 설정이 불필요한 Annotation을 제외한 제약들에 대해 테스트를 수행했습니다.
id가 CommonValues로부터 값을 참조해 가독성을 좋게 만들었습니다.
caniro
approved these changes
Jun 4, 2025
Contributor
caniro
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.
점점 불필요한 부분이 제거되고, 명칭이 더 명확해지는 게 보이네요
고생하셨습니다
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

✨ 작업내용
🐞 이슈사항