From 6c4d57b325ef40d4f4a234ae5c75de30fa5282fc Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:35:06 +0000 Subject: [PATCH 1/5] forge: open work branch for iss-cb58f86e71d9-attempt-1 --- .forge/iss-cb58f86e71d9-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/iss-cb58f86e71d9-attempt-1.md diff --git a/.forge/iss-cb58f86e71d9-attempt-1.md b/.forge/iss-cb58f86e71d9-attempt-1.md new file mode 100644 index 0000000..3d1fc48 --- /dev/null +++ b/.forge/iss-cb58f86e71d9-attempt-1.md @@ -0,0 +1,3 @@ +# iss-cb58f86e71d9-attempt-1 + +Forge 이슈 작업 브랜치 `forge/iss-cb58f86e71d9-attempt-1`. From f6bac2803a77dbcd51cf9a715295de709efa168a Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:35:16 +0000 Subject: [PATCH 2/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(2/2)=20(iss-cb58f86e71d9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..6ccd865 --- /dev/null +++ b/pom.xml @@ -0,0 +1,18 @@ + + 4.0.0 + + com.klaro.bais + bais-platform + 1.0-SNAPSHOT + pom + + + org.springframework.boot + spring-boot-starter-parent + 3.5.14 + + + + services/payments + + \ No newline at end of file From 7d60985dc86ff8a0f66a781f9cf51777bc855c85 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:35:18 +0000 Subject: [PATCH 3/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(2/2)=20(iss-cb58f86e71d9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/payments/pom.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 services/payments/pom.xml diff --git a/services/payments/pom.xml b/services/payments/pom.xml new file mode 100644 index 0000000..ea4b9c4 --- /dev/null +++ b/services/payments/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + + + com.klaro.bais + bais-platform + 1.0-SNAPSHOT + ../../pom.xml + + + payments + 1.0-SNAPSHOT + + + + org.apache.commons + commons-lang3 + 3.18.0 + + + \ No newline at end of file From a4bc99c381829d721c4e3499d9b187a7d7a1b7bc Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:35:19 +0000 Subject: [PATCH 4/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(2/2)=20(iss-cb58f86e71d9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../klaro/bais/payments/PaymentReferenceService.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java 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 new file mode 100644 index 0000000..6dc5371 --- /dev/null +++ b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java @@ -0,0 +1,10 @@ +package com.klaro.bais.payments; + +import org.apache.commons.lang3.StringUtils; + +public class PaymentReferenceService { + + public String normalize(String input) { + return StringUtils.trimToEmpty(input); + } +} \ No newline at end of file From 67d244255c2679174a13bfc4a7b1e809bfd7deb6 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:35:21 +0000 Subject: [PATCH 5/5] =?UTF-8?q?BAIS=20payments=20=EB=A9=80=ED=8B=B0?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?(2/2)=20(iss-cb58f86e71d9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payments/PaymentReferenceServiceTest.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java 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 new file mode 100644 index 0000000..83e55ad --- /dev/null +++ b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java @@ -0,0 +1,25 @@ +package com.klaro.bais.payments; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +class PaymentReferenceServiceTest { + + private PaymentReferenceService paymentReferenceService = new PaymentReferenceService(); + + @Test + void testNormalizeWithNull() { + assertEquals("", paymentReferenceService.normalize(null)); + } + + @Test + void testNormalizeWithBlank() { + assertEquals("", paymentReferenceService.normalize(" ")); + } + + @Test + void testNormalizeWithValidString() { + String input = " test "; + assertEquals("test", paymentReferenceService.normalize(input)); + } +} \ No newline at end of file