[TEST #35]: arch unit test 적용 - #36
Conversation
Summary of ChangesHello @seoyeon2001, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 Pull Request는 프로젝트의 견고성과 유지보수성을 향상시키기 위해 아키텍처 규칙을 정의하고 이를 자동화된 테스트로 검증하는 시스템을 도입합니다. 기존 코드베이스에서 발견된 아키텍처 위반 사항을 수정하여 패키지 구조를 재정비하고, 향후 개발 과정에서 일관된 아키텍처를 유지할 수 있는 기반을 마련합니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
📌 개요
🔧 작업 내용
아키텍처 테스트 추가 (
archunit-junit5:1.4.1)GlobalArchitectureTest— 계층 간 의존 방향성, global 패키지 독립성, DI 방식(생성자 주입 강제)ControllerArchitectureTest—@RestController,controller패키지 위치, Service 의존 필수, Swagger Api 인터페이스 구현 강제ServiceArchitectureTest—@Service,service패키지 위치, Controller 역참조 금지RepositoryArchitectureTest—repository패키지 위치, 상위 계층 참조 금지EntityArchitectureTest—@Entity선언 강제, 계층 역참조 금지DtoArchitectureTest— Request/Response 클래스의dto패키지 위치SwaggerArchitectureTest— Api 인터페이스 타입·@Tag·controller패키지 위치패키지 구조 리팩토링 (아키텍처 규칙 위반 수정)
auth/AuthController.javaauth/controller/AuthController.javaauth/AuthApi.javaauth/controller/AuthApi.javaauth/AuthService.javaauth/service/AuthService.javaauth/AuthException.javaglobal/exception/AuthException.javaauth/jwt/RefreshTokenRepository.javaauth/jwt/repository/RefreshTokenRepository.javauser/UserService.javauser/service/UserService.java문서화
ARCHITECTURE.md추가 — 패키지 구조, 계층별 규칙, 허용 명명 패턴 명세✅ 체크리스트
📝 기타 참고 사항
domain.test패키지의 개발용 컨트롤러(TestController,TestAuthController)는 아키텍처 규칙 대상에서 제외Impl구현체나 커스텀 확장(PostServiceImpl,PostRepositoryCustom등)을 허용하기 위해 강제하지 않음@Transactional클래스 레벨 선언도 동일한 이유로 강제하지 않음📎 관련 이슈
Close #35