From d73472ac988c7b8a8bff1ac595c1620e394eab9c Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:04:19 +0000 Subject: [PATCH 1/4] forge: open work branch for BAIS-REVIEW-1783807356-attempt-2 --- .forge/BAIS-REVIEW-1783807356-attempt-2.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-REVIEW-1783807356-attempt-2.md diff --git a/.forge/BAIS-REVIEW-1783807356-attempt-2.md b/.forge/BAIS-REVIEW-1783807356-attempt-2.md new file mode 100644 index 0000000..941ccfe --- /dev/null +++ b/.forge/BAIS-REVIEW-1783807356-attempt-2.md @@ -0,0 +1,3 @@ +# BAIS-REVIEW-1783807356-attempt-2 + +Forge 이슈 작업 브랜치 `forge/BAIS-REVIEW-1783807356-attempt-2`. -- 2.49.1 From bbcdbce596ded7d862fb4242fee70cdbfb9d01d5 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:04:27 +0000 Subject: [PATCH 2/4] =?UTF-8?q?Spring=20Boot=203.5.14=20=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20(BAIS-REVIEW-1783807356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..50af0c5 --- /dev/null +++ b/pom.xml @@ -0,0 +1,49 @@ + + 4.0.0 + + com.klaro.bais + bais-payment-service + 1.0-SNAPSHOT + jar + + + 17 + 3.5.14 + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring.boot.version} + pom + import + + + + + + + org.springframework.boot + spring-boot-starter + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring.boot.version} + + + + -- 2.49.1 From 70c9801e82d210f12d058d3bd63a3418ea780c2f Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:04:29 +0000 Subject: [PATCH 3/4] =?UTF-8?q?Spring=20Boot=203.5.14=20=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20(BAIS-REVIEW-1783807356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/klaro/bais/PaymentService.java | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/main/java/com/klaro/bais/PaymentService.java diff --git a/src/main/java/com/klaro/bais/PaymentService.java b/src/main/java/com/klaro/bais/PaymentService.java new file mode 100644 index 0000000..d352bdc --- /dev/null +++ b/src/main/java/com/klaro/bais/PaymentService.java @@ -0,0 +1,7 @@ +package com.klaro.bais; + +public class PaymentService { + public boolean approve(long amount) { + return amount > 0; + } +} -- 2.49.1 From ad48f306706b1d773cabc9707f4a52e0417f561c Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:04:30 +0000 Subject: [PATCH 4/4] =?UTF-8?q?Spring=20Boot=203.5.14=20=EA=B2=B0=EC=A0=9C?= =?UTF-8?q?=20=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=B5=9C=EC=86=8C=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20(BAIS-REVIEW-1783807356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/klaro/bais/PaymentServiceTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/test/java/com/klaro/bais/PaymentServiceTest.java diff --git a/src/test/java/com/klaro/bais/PaymentServiceTest.java b/src/test/java/com/klaro/bais/PaymentServiceTest.java new file mode 100644 index 0000000..3cca4b3 --- /dev/null +++ b/src/test/java/com/klaro/bais/PaymentServiceTest.java @@ -0,0 +1,23 @@ +package com.klaro.bais; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; + +public class PaymentServiceTest { + private final PaymentService paymentService = new PaymentService(); + + @Test + public void testApproveWithPositiveAmount() { + assertTrue(paymentService.approve(100)); + } + + @Test + public void testApproveWithZeroAmount() { + assertFalse(paymentService.approve(0)); + } + + @Test + public void testApproveWithNegativeAmount() { + assertFalse(paymentService.approve(-100)); + } +} -- 2.49.1