[test][boot-sample] EgovPaginationDialect 단위 테스트 추가#49
Merged
eGovFrameSupport merged 1 commit intoMay 28, 2026
Conversation
Thymeleaf 페이지네이션 Dialect의 이름 등록, ExpressionObjectFactory 생성, 표현 객체 이름 포함 여부, 렌더러 인스턴스 반환, 캐시 가능 여부 등 5가지 케이스를 검증한다.
eGovFrameSupport
approved these changes
May 28, 2026
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.
EgovPaginationDialect의 Thymeleaf 표현 객체 팩토리 동작을 검증하는 단위 테스트를 추가한다.
변경 파일
src/test/java/egovframework/example/pagination/EgovPaginationDialectTest.java(신규)테스트 케이스 (5건)
EgovPaginationDialect로 등록되는지 확인getExpressionObjectFactory()반환값이 null이 아닌지 확인egovKrdsPaginationRenderer가 포함되는지 확인buildObject()가 주입된 renderer 인스턴스를 그대로 반환하는지 확인isCacheable()이egovKrdsPaginationRenderer에 대해 true를 반환하는지 확인테스트 환경: JUnit 5 + Mockito (EgovKrdsPaginationRenderer mock), Spring 컨텍스트 불필요한 순수 단위 테스트
빌드 결과:
mvn test -Dtest=EgovPaginationDialectTest→ Tests run: 5, Failures: 0, Errors: 0