[test][boot-sample] SampleMapper update/delete/selectList/selectListTotCnt 단위 테스트 추가#51
Merged
eGovFrameSupport merged 1 commit intoMay 28, 2026
Conversation
insertSample 테스트에 이어 나머지 CRUD 및 목록 조회 메서드에 대한 DAO 레이어 단위 테스트를 추가한다. - updateSample: 수정 후 name, description, useYn 변경 확인 - deleteSample: 삭제 후 selectSample 조회 결과 null 확인 - selectSampleList: 등록 후 키워드 검색으로 목록 조회 결과 확인 - selectSampleListTotCnt: 등록 후 키워드 검색으로 전체 건수 1 이상 확인
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.
변경 사유
SampleMapperTestInsertSampleTest가 insertSample만 검증하고 있어 updateSample, deleteSample, selectSampleList, selectSampleListTotCnt에 대한 DAO 레이어 테스트가 없었다. CRUD 전 범위에 대한 단위 테스트를 추가하여 MyBatis 매퍼 동작을 검증한다.변경 내용
SampleMapperTestUpdateSampleTest: 수정 후 name, description, useYn 변경 확인SampleMapperTestDeleteSampleTest: 삭제 후 selectSample 결과 null 확인SampleMapperTestSelectSampleListTest: 키워드 검색으로 목록 조회 결과 비어 있지 않음 확인SampleMapperTestSelectSampleListTotCntTest: 키워드 검색으로 전체 건수 1 이상 확인영향 범위
테스트 코드만 추가. 운영 코드 변경 없음.
체크리스트