[test][web-sample] EgovSampleController CRUD 액션 MockMvc 통합 테스트 추가#30
Closed
dasomel wants to merge 1 commit into
Closed
Conversation
update/delete/selectList 3개 액션을 Spring 통합 테스트(MockMvc)로 검증한다. 컨트롤러 라우팅과 서비스 위임 동작을 보장하기 위함이다.
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.
변경 사유
EgovSampleController의 update/delete/selectList 액션이 단위 테스트로 커버되지 않아 회귀 검증 자동화가 어렵다. MockMvc + Spring 통합 테스트를 추가해 안정성을 높인다.변경 내용
EgovSampleControllerTestUpdateSampleTest: POST /updateSample.do 호출 후 변경 검증EgovSampleControllerTestDeleteSampleTest: POST /deleteSample.do 호출 후 selectSample 조회 시 예외 검증EgovSampleControllerTestSelectListTest: GET /egovSampleList.do 기본/검색/루트 경로 검증영향 범위
skipTests=true(기존 설정) 그대로 두어 일반 빌드에는 영향 없음체크리스트