Skip to content

[test/#565] Contest 도메인 테스트 코드 작성#566

Merged
kanghana1 merged 5 commits intodevelopfrom
test/#565
Apr 10, 2026
Merged

[test/#565] Contest 도메인 테스트 코드 작성#566
kanghana1 merged 5 commits intodevelopfrom
test/#565

Conversation

@kanghana1
Copy link
Copy Markdown
Contributor

@kanghana1 kanghana1 commented Apr 3, 2026

❤️ 기능 설명

  • Contest 도메인의 단위테스트와 통합테스트를 작성합니다.
  • 작성과정에서 대회기록 영상을 중복 저장하는 로직상 오류가 있어서 수정을 진행했습니다.

단위테스트 - command
스크린샷 2026-04-04 002159

단위테스트 - query
스크린샷 2026-04-04 002509

통합테스트
스크린샷 2026-04-04 003840

추후 별도의 이슈로 코드 리팩토링(함수명이 의미에 맞지 않는 부분, dto를 과도하게 사용하는 부분) 을 진행하겠습니다.


연결된 issue

연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #565



🩷 Approve 하기 전 확인해주세요!


✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 테스트 결과 사진을 넣었는가?
  • 이슈넘버를 적었는가?

@kanghana1 kanghana1 requested review from Dimo-2562 and dbalsk April 3, 2026 15:44
@kanghana1 kanghana1 self-assigned this Apr 3, 2026
@kanghana1 kanghana1 added the TEST 테스트코드를 짭시다 label Apr 3, 2026
Copy link
Copy Markdown
Contributor

@Dimo-2562 Dimo-2562 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!! 리뷰 읽어보시고 선택적으로 반영해주세요!

.andExpect(jsonPath("$.data.contestImgs[0].imgOrder").value(1))
.andExpect(jsonPath("$.data.contestVideos").isArray())
.andExpect(jsonPath("$.data.contestVideos", hasSize(1)))
.andExpect(jsonPath("$.data.UpdatedAt").isNotEmpty());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 DTO 필드명이 카멜 케이스가 아닌 거 같아서 수정하면 좋을 것 같습니다

@kanghana1 kanghana1 merged commit d90ddf8 into develop Apr 10, 2026
1 check passed
@kanghana1 kanghana1 deleted the test/#565 branch April 10, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TEST 테스트코드를 짭시다

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test] Contest 테스트코드 작성

2 participants