From 3984661116d49b2e74e775024ca076d460f883aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=B0=B1=ED=96=89?= Date: Fri, 18 Sep 2026 05:51:51 +0900 Subject: [PATCH] =?UTF-8?q?fix(sample):=20=ED=8F=BC=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=20=ED=9B=84=20=EC=84=A4=EB=AA=85=20=EA=B8=80=EC=9E=90?= =?UTF-8?q?=20=EC=88=98=20=ED=91=9C=EC=8B=9C=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 폼 초기화 후 복원된 설명 길이를 계산하여 글자 수에 반영한다. 초기 표시와 입력 이벤트의 글자 수 갱신을 updateTextCount로 통합한다. 등록·수정 처리의 불필요한 변수와 else를 제거하고 들여쓰기를 정리한다. 글자 수 설정과 입력 이벤트의 설명 주석을 유지한다. 서비스 테스트에서 사용하지 않는 Mockito 정적 import를 제거한다. --- .../thymeleaf/sample/egovSampleRegister.html | 69 +++++++++---------- .../impl/EgovSampleServiceImplTest.java | 1 - 2 files changed, 32 insertions(+), 38 deletions(-) diff --git a/src/main/resources/templates/thymeleaf/sample/egovSampleRegister.html b/src/main/resources/templates/thymeleaf/sample/egovSampleRegister.html index c22cfff..a226fbd 100644 --- a/src/main/resources/templates/thymeleaf/sample/egovSampleRegister.html +++ b/src/main/resources/templates/thymeleaf/sample/egovSampleRegister.html @@ -19,52 +19,47 @@ diff --git a/src/test/java/egovframework/example/sample/service/impl/EgovSampleServiceImplTest.java b/src/test/java/egovframework/example/sample/service/impl/EgovSampleServiceImplTest.java index e5eb978..61c342d 100644 --- a/src/test/java/egovframework/example/sample/service/impl/EgovSampleServiceImplTest.java +++ b/src/test/java/egovframework/example/sample/service/impl/EgovSampleServiceImplTest.java @@ -18,7 +18,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when;