[test][main] SampleVO/SampleDefaultVO 순수 단위 테스트 추가#34
Closed
dasomel wants to merge 2 commits into
Closed
Conversation
SampleVO 및 SampleDefaultVO의 기본값, setter/getter, 상속 관계를 DB·Spring 컨텍스트 없이 검증하는 JUnit 5 단위 테스트 추가. 기존 테스트가 모두 DB 연동 통합 테스트인 점을 보완. pom.xml: Lombok annotationProcessorPaths 추가, skipTests false로 변경
- Lombok annotationProcessorPaths 및 surefire skipTests 변경은 본 테스트 PR 범위에서 제외 - 단일 주제(테스트 추가) 유지
Contributor
|
표준프레임워크에 대한 지속적인 참여에 대단히 감사드립니다. |
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.
변경 사유
기존 테스트 코드가 모두 DB 연동 통합 테스트(Spring 컨텍스트 + H2/MySQL)로만 구성되어 있어,
순수 도메인 로직에 대한 빠르고 독립적인 단위 테스트가 없었습니다.
SampleVO와 SampleDefaultVO는 외부 의존 없는 순수 POJO이므로 단위 테스트 대상으로 적합합니다.
변경 내용
SampleDefaultVOTest.java: 검색조건·페이지 관련 기본값, setter/getter, toString 동작 검증 (13개 테스트)SampleVOTest.java: id/name/description 초기값, 상속 관계, 복합 필드 세팅 검증 (14개 테스트)pom.xml: LombokannotationProcessorPaths추가 (기존 테스트 파일의@Slf4j컴파일 오류 수정),skipTestsfalse로 변경테스트 결과
체크리스트