Skip to content

test: 컨트롤러 @WebMvcTest 10개 + Swagger 문서화 반영 (prod) - #234

Merged
unam98 merged 1 commit into
mainfrom
tests/controller-tests-swagger-to-main
Aug 11, 2026
Merged

test: 컨트롤러 @WebMvcTest 10개 + Swagger 문서화 반영 (prod)#234
unam98 merged 1 commit into
mainfrom
tests/controller-tests-swagger-to-main

Conversation

@unam98

@unam98 unam98 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

작업 배경

dev/main 브랜치 정합성을 점검하다가, dev에서 이미 검증 완료된 컨트롤러 슬라이스 테스트 전체와 Swagger 문서화가 main엔 전혀 반영되어 있지 않은 걸 발견했다 (dev PR #226~231).

변경 사항

영역 내용
config/jpa/JpaAuditingConfig.java (신규) @EnableJpaAuditingServerApplication에서 분리 — @WebMvcTest가 엔티티 스캔 없이도 JPA Auditing을 초기화하려다 나던 컨텍스트 로딩 실패를 막기 위한 선행 조건
config/swagger/SwaggerConfig.java (신규) springdoc-openapi 기반 API 문서 자동화, accessToken/refreshToken 커스텀 헤더 인증 스킴 구성
build.gradle springdoc-openapi-ui 의존성 추가
컨트롤러 테스트 10개 (신규) Auth/Banner/ServerProfile/Course/Health/PublicCourse/Record/Scrap/User/UserStamp — 총 236개 테스트

영향 범위

  • 테스트/문서화 전용 변경, 기존 컨트롤러/서비스 로직 변경 없음.
  • /swagger-ui/index.html에서 API 스펙 확인 가능해짐.
  • dev에서 이미 여러 PR로 나눠 검증됐던 것을 이번엔 한 번에 반영.

Test Plan

  • ./gradlew compileTestJava 성공
  • 로컬 postgres/redis 기동 후 ./gradlew test 전체 236/236 통과

🤖 Generated with Claude Code

dev에서 검증 완료된 컨트롤러 슬라이스 테스트 전체(Auth/Banner/
ServerProfile/Course/Health/PublicCourse/Record/Scrap/User/
UserStamp, 총 236개 테스트 통과)와 springdoc-openapi 기반 Swagger
문서 자동화를 main에 반영한다.

JpaAuditingConfig로 @EnableJpaAuditing을 ServerApplication에서
분리한 것도 함께 포팅했다 — @WebMvcTest가 엔티티 스캔 없이도
JPA Auditing 인프라를 초기화하려다 나던 "JPA metamodel must not
be empty" 컨텍스트 로딩 실패를 막기 위해 필요한 선행 조건이다.
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8fc60319-537a-4728-b300-4a769a4ebe2d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@unam98
unam98 merged commit d83a7a3 into main Aug 11, 2026
2 checks passed
@unam98
unam98 deleted the tests/controller-tests-swagger-to-main branch August 11, 2026 07:22
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.

2 participants