diff --git a/.forge/BAIS-CTX-1783821073-attempt-1.md b/.forge/BAIS-CTX-1783821073-attempt-4.md similarity index 63% rename from .forge/BAIS-CTX-1783821073-attempt-1.md rename to .forge/BAIS-CTX-1783821073-attempt-4.md index fa332cd..27c880c 100644 --- a/.forge/BAIS-CTX-1783821073-attempt-1.md +++ b/.forge/BAIS-CTX-1783821073-attempt-4.md @@ -1,3 +1,3 @@ -# BAIS-CTX-1783821073-attempt-1 +# BAIS-CTX-1783821073-attempt-4 -Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-1`. +Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-4`. diff --git a/pom.xml b/pom.xml index 3a06184..d025c7b 100644 --- a/pom.xml +++ b/pom.xml @@ -1,15 +1,22 @@ - + + 4.0.0 + org.springframework.boot spring-boot-starter-parent 3.5.14 + com.klaro.bais bais-platform 1.0-SNAPSHOT pom + services/payments - + + \ No newline at end of file diff --git a/services/payments/pom.xml b/services/payments/pom.xml index 0bddfb9..f4d20af 100644 --- a/services/payments/pom.xml +++ b/services/payments/pom.xml @@ -1,11 +1,16 @@ - + + 4.0.0 + com.klaro.bais bais-platform 1.0-SNAPSHOT ../../pom.xml + payments @@ -13,5 +18,12 @@ commons-lang3 3.18.0 + + 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 159a78d..a349b69 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 @@ -6,4 +6,4 @@ public class PaymentReferenceService { public String normalize(String input) { return StringUtils.trimToEmpty(input); } -} +} \ No newline at end of file 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 ee30f15..b363d79 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 @@ -1,28 +1,24 @@ package com.klaro.bais.payments; import org.junit.jupiter.api.Test; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; class PaymentReferenceServiceTest { - private final PaymentReferenceService paymentReferenceService = new PaymentReferenceService(); + + private final PaymentReferenceService service = new PaymentReferenceService(); @Test - void testNormalize_NullInput() { - assertEquals("", paymentReferenceService.normalize(null)); + void testNormalizeNull() { + assertEquals("", service.normalize(null)); } @Test - void testNormalize_EmptyInput() { - assertEquals("", paymentReferenceService.normalize("")); + void testNormalizeEmpty() { + assertEquals("", service.normalize(" ")); } @Test - void testNormalize_WhitespaceInput() { - assertEquals("", paymentReferenceService.normalize(" ")); + void testNormalizeNormalString() { + assertEquals("test", service.normalize(" test ")); } - - @Test - void testNormalize_RegularInput() { - assertEquals("Hello", paymentReferenceService.normalize(" Hello ")); - } -} +} \ No newline at end of file