Skip to content

멘토링 Booking 생성 테스트에서 INVALID_ARGUMENT 예외 코드 검증 추가 #24

Description

@coderabbitai

요약

멘토링 Booking 생성 요청에 startTime이 없을 때 발생하는 예외 테스트가 BusinessException 타입만 검증합니다.

변경 사항

BookingCommandServiceTest.createMentoringBooking_whenStartTimeIsNull_throwsInvalidArgument에서 발생한 BusinessException의 오류 코드가 ErrorCode.INVALID_ARGUMENT인지도 검증합니다.

근거

다른 입력 검증 실패로 인한 BusinessException도 현재 테스트를 통과할 수 있습니다. 오류 코드를 검증하면 멘토링 startTime 누락에 대한 API 계약을 보호할 수 있습니다.

영향 범위

  • src/test/java/com/kosa/fillinv/booking/service/BookingCommandServiceTest.java

완료 조건

  • createBooking("mentee-1", request) 호출은 유지합니다.
  • 테스트가 BusinessException을 검증합니다.
  • 테스트가 예외의 ErrorCode.INVALID_ARGUMENT를 검증합니다.
  • 관련 테스트가 통과합니다.

참고

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions