From 0567bbc48f87eb14a65ee40bca1064dd24096f82 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 00:42:30 +0000 Subject: [PATCH 1/5] forge: open work branch for BAIS-MAVEN-1783816946-attempt-1 --- .forge/BAIS-MAVEN-1783816946-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-MAVEN-1783816946-attempt-1.md diff --git a/.forge/BAIS-MAVEN-1783816946-attempt-1.md b/.forge/BAIS-MAVEN-1783816946-attempt-1.md new file mode 100644 index 0000000..796d876 --- /dev/null +++ b/.forge/BAIS-MAVEN-1783816946-attempt-1.md @@ -0,0 +1,3 @@ +# BAIS-MAVEN-1783816946-attempt-1 + +Forge 이슈 작업 브랜치 `forge/BAIS-MAVEN-1783816946-attempt-1`. -- 2.49.1 From 72af01753dfbc15d8d97fe8acf8022d9c049e886 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 00:42:42 +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?(BAIS-MAVEN-1783816946)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..dd51b6f --- /dev/null +++ b/pom.xml @@ -0,0 +1,17 @@ + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 3.5.14 + + + bais-platform + pom + + services/payments + + -- 2.49.1 From bf53e8ded711daa0a4eae0723448f342c80a2439 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 00:42:43 +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?(BAIS-MAVEN-1783816946)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/payments/pom.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..e91d0da --- /dev/null +++ b/services/payments/pom.xml @@ -0,0 +1,22 @@ + + 4.0.0 + + + com.klaro.bais + bais-platform + 1.0-SNAPSHOT + ../../pom.xml + + + payments + + + + org.apache.commons + commons-lang3 + 3.18.0 + + + -- 2.49.1 From 783be35a4664ffd718d0c069d27a6845ef875c8c Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 00:42:44 +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?(BAIS-MAVEN-1783816946)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/klaro/bais/payments/PaymentReferenceService.java | 9 +++++++++ 1 file changed, 9 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..ff99199 --- /dev/null +++ b/services/payments/src/main/java/com/klaro/bais/payments/PaymentReferenceService.java @@ -0,0 +1,9 @@ +package com.klaro.bais.payments; + +import org.apache.commons.lang3.StringUtils; + +public class PaymentReferenceService { + public String normalize(String reference) { + return StringUtils.trimToEmpty(reference); + } +} -- 2.49.1 From b8e373a64b0d2e3b96f0264d60479bd874a6adff Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sun, 12 Jul 2026 00:42:45 +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?(BAIS-MAVEN-1783816946)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../payments/PaymentReferenceServiceTest.java | 29 +++++++++++++++++++ 1 file changed, 29 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..a969e5f --- /dev/null +++ b/services/payments/src/test/java/com/klaro/bais/payments/PaymentReferenceServiceTest.java @@ -0,0 +1,29 @@ +package com.klaro.bais.payments; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +class PaymentReferenceServiceTest { + + private final PaymentReferenceService service = new PaymentReferenceService(); + + @Test + void testNormalize_Null() { + assertEquals("", service.normalize(null)); + } + + @Test + void testNormalize_Empty() { + assertEquals("", service.normalize("")); + } + + @Test + void testNormalize_Whitespace() { + assertEquals("", service.normalize(" ")); + } + + @Test + void testNormalize_ValidString() { + assertEquals("valid", service.normalize(" valid ")); + } +} -- 2.49.1