test: 컨트롤러 @WebMvcTest 10개 + Swagger 문서화 반영 (prod) - #234
Merged
Conversation
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" 컨텍스트 로딩 실패를 막기 위해 필요한 선행 조건이다.
unam98
requested review from
RinRinPARK,
YuSuhwa-ve and
funnysunny08
as code owners
August 11, 2026 07:17
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 배경
dev/main 브랜치 정합성을 점검하다가, dev에서 이미 검증 완료된 컨트롤러 슬라이스 테스트 전체와 Swagger 문서화가 main엔 전혀 반영되어 있지 않은 걸 발견했다 (dev PR #226~231).
변경 사항
config/jpa/JpaAuditingConfig.java(신규)@EnableJpaAuditing을ServerApplication에서 분리 —@WebMvcTest가 엔티티 스캔 없이도 JPA Auditing을 초기화하려다 나던 컨텍스트 로딩 실패를 막기 위한 선행 조건config/swagger/SwaggerConfig.java(신규)build.gradle영향 범위
/swagger-ui/index.html에서 API 스펙 확인 가능해짐.Test Plan
./gradlew compileTestJava성공./gradlew test전체 236/236 통과🤖 Generated with Claude Code