Skip to content

[test][boot-sample] SampleMapper update/delete/selectList/selectListTotCnt 단위 테스트 추가#51

Merged
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
dasomel-eGovFramework:test/sample-mapper-unit-tests-main
May 28, 2026
Merged

[test][boot-sample] SampleMapper update/delete/selectList/selectListTotCnt 단위 테스트 추가#51
eGovFrameSupport merged 1 commit into
eGovFramework:mainfrom
dasomel-eGovFramework:test/sample-mapper-unit-tests-main

Conversation

@dasomel
Copy link
Copy Markdown
Contributor

@dasomel dasomel commented May 27, 2026

변경 사유

SampleMapperTestInsertSampleTest가 insertSample만 검증하고 있어 updateSample, deleteSample, selectSampleList, selectSampleListTotCnt에 대한 DAO 레이어 테스트가 없었다. CRUD 전 범위에 대한 단위 테스트를 추가하여 MyBatis 매퍼 동작을 검증한다.

변경 내용

  • SampleMapperTestUpdateSampleTest: 수정 후 name, description, useYn 변경 확인
  • SampleMapperTestDeleteSampleTest: 삭제 후 selectSample 결과 null 확인
  • SampleMapperTestSelectSampleListTest: 키워드 검색으로 목록 조회 결과 비어 있지 않음 확인
  • SampleMapperTestSelectSampleListTotCntTest: 키워드 검색으로 전체 건수 1 이상 확인

영향 범위

테스트 코드만 추가. 운영 코드 변경 없음.

체크리스트

  • 단일 주제만 다룸 (다른 변경 없음)
  • 기존 동작 호환
  • 테스트 통과 확인 (4/4 PASS)

insertSample 테스트에 이어 나머지 CRUD 및 목록 조회 메서드에 대한
DAO 레이어 단위 테스트를 추가한다.
- updateSample: 수정 후 name, description, useYn 변경 확인
- deleteSample: 삭제 후 selectSample 조회 결과 null 확인
- selectSampleList: 등록 후 키워드 검색으로 목록 조회 결과 확인
- selectSampleListTotCnt: 등록 후 키워드 검색으로 전체 건수 1 이상 확인
@eGovFrameSupport
Copy link
Copy Markdown
Contributor

표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.

@eGovFrameSupport eGovFrameSupport merged commit 3eee82f into eGovFramework:main May 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants