diff --git a/.forge/BAIS-CTX-1783821073-attempt-4.md b/.forge/BAIS-CTX-1783821073-attempt-3.md similarity index 63% rename from .forge/BAIS-CTX-1783821073-attempt-4.md rename to .forge/BAIS-CTX-1783821073-attempt-3.md index 27c880c..3a2b987 100644 --- a/.forge/BAIS-CTX-1783821073-attempt-4.md +++ b/.forge/BAIS-CTX-1783821073-attempt-3.md @@ -1,3 +1,3 @@ -# BAIS-CTX-1783821073-attempt-4 +# BAIS-CTX-1783821073-attempt-3 -Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-4`. +Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-3`. diff --git a/pom.xml b/pom.xml index d025c7b..c243b47 100644 --- a/pom.xml +++ b/pom.xml @@ -1,15 +1,11 @@ - - 4.0.0 - org.springframework.boot spring-boot-starter-parent 3.5.14 - com.klaro.bais bais-platform 1.0-SNAPSHOT @@ -18,5 +14,4 @@ services/payments - - \ No newline at end of file + diff --git a/services/payments/pom.xml b/services/payments/pom.xml index f4d20af..223f36a 100644 --- a/services/payments/pom.xml +++ b/services/payments/pom.xml @@ -1,16 +1,12 @@ - - 4.0.0 - com.klaro.bais bais-platform 1.0-SNAPSHOT ../../pom.xml - payments @@ -21,9 +17,7 @@ org.springframework.boot spring-boot-starter-test - 3.5.14 test - \ No newline at end of file diff --git a/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java index a349b69..6dc5371 100644 --- a/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java +++ b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java @@ -3,6 +3,7 @@ package com.klaro.bais.payments; import org.apache.commons.lang3.StringUtils; public class PaymentReferenceService { + public String normalize(String input) { return StringUtils.trimToEmpty(input); } diff --git a/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java index b363d79..3f9ff38 100644 --- a/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java +++ b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java @@ -13,12 +13,12 @@ class PaymentReferenceServiceTest { } @Test - void testNormalizeEmpty() { + void testNormalizeWhitespace() { assertEquals("", service.normalize(" ")); } @Test - void testNormalizeNormalString() { - assertEquals("test", service.normalize(" test ")); + void testNormalizeString() { + assertEquals("test", service.normalize(" test ")); } } \ No newline at end of file