Skip to content

[SCRUM-4] RegisterWaitingQueueService 단위 테스트 작성 및 중복 체크 로직 추가 - #4

Open
pjh612 wants to merge 1 commit into
developfrom
feature/SCRUM-4-register-waiting-queue-service-test
Open

[SCRUM-4] RegisterWaitingQueueService 단위 테스트 작성 및 중복 체크 로직 추가#4
pjh612 wants to merge 1 commit into
developfrom
feature/SCRUM-4-register-waiting-queue-service-test

Conversation

@pjh612

@pjh612 pjh612 commented Feb 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • RegisterWaitingQueueService 단위 테스트 작성 (5개 시나리오)
  • clientId + queueName 중복 체크 로직 추가
  • @transactional 어노테이션 추가
  • 테스트 커버리지 100% 달성

변경 사항

  • RegisterWaitingQueueService: 중복 queueName 체크 로직 + @transactional
  • WaitingQueueRepository: findByClientIdAndQueueName 메서드 추가
  • RegisterWaitingQueueServiceTest: 5개 테스트 시나리오

테스트 계획

  • 새 대기열 정상 생성
  • UUID → API 키 인코딩
  • 응답에 API 키 포함
  • 레포지토리 저장 실패 시 에러 전파
  • 중복 queueName 등록 시 예외 발생

참고

- RegisterWaitingQueueService 단위 테스트 작성 (5개 시나리오)
- clientId + queueName 중복 체크 로직 추가
- @transactional 어노테이션 추가
- 테스트 커버리지 100% 달성

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant