[test][web-sample] EgovBindingInitializer 단위 테스트 추가#32
Closed
dasomel wants to merge 1 commit into
Closed
Conversation
…ths 설정 EgovBindingInitializer의 initBinder 동작을 검증하는 단위 테스트 4개를 추가한다. - 유효한 yyyy-MM-dd 날짜 문자열이 Date로 변환됨을 검증 - 잘못된 날짜 형식(yyyy/MM/dd) 입력 시 예외 발생을 검증 - StringTrimmerEditor가 등록되어 공백 제거 동작을 검증 - CustomDateEditor가 PropertyEditorRegistry에 등록됨을 검증 아울러 maven-compiler-plugin에 annotationProcessorPaths를 추가해 Lombok @slf4j 등이 테스트 소스에서 정상 동작하도록 하고, maven-surefire-plugin의 skipTests를 하드코딩 true에서 ${skipTests} property로 변경해 커맨드라인 옵션(-DskipTests=false)으로 테스트를 실행할 수 있게 한다.
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.
EgovBindingInitializer의 initBinder 동작을 검증하는 단위 테스트를 추가한다.
변경 내용
EgovBindingInitializerTest.java신규 추가 (테스트 4개)yyyy-MM-dd날짜 문자열 →Date변환 검증yyyy/MM/dd) 입력 시 예외 발생 검증StringTrimmerEditor등록 여부 및 공백 제거 동작 검증CustomDateEditor가PropertyEditorRegistry에 등록됨을 검증pom.xml수정maven-compiler-plugin에annotationProcessorPaths추가 → Lombok@Slf4j등이 테스트 소스에서 정상 동작maven-surefire-plugin의<skipTests>true</skipTests>하드코딩을${skipTests}로 변경 →-DskipTests=false옵션으로 테스트 실행 가능테스트 결과
체크리스트