Skip to content
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

[test/#166-tag-service] 태그 서비스 테스트 #167

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

5jisoo
Copy link
Member

@5jisoo 5jisoo commented Jan 12, 2025

📒 개요

TagService를 테스트합니다.

📍 Issue 번호

🛠️ 작업사항

  • 태그 수락 테스트
  • 태그 거절 테스트

태그 거절 테스트에서 size() 0로 hard delete로 테스트를 작성한 이유는 Tag 엔티티 상단에 쓰인 @SQLDelete가 soft delete를 위해 작성되었는데...
MySQL 데이터베이스 서버에서는 잘 작동되지만, h2 테스트데이터베이스에서는 적용되지 않아 hard delete로 JPA가 해석해서 실행하는 것 같아요,, 지양해야되는 패턴인듯 일단 테스트는 이렇게 작성해두었습니다.

@5jisoo 5jisoo self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants