From 21e9c7c879c185cfc5740acb246f4098d682ae8f Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:02:41 +0000 Subject: [PATCH 1/7] forge: open work branch for BAIS-REVIEW-1783807356-attempt-1 --- .forge/BAIS-REVIEW-1783807356-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-REVIEW-1783807356-attempt-1.md diff --git a/.forge/BAIS-REVIEW-1783807356-attempt-1.md b/.forge/BAIS-REVIEW-1783807356-attempt-1.md new file mode 100644 index 0000000..e67840e --- /dev/null +++ b/.forge/BAIS-REVIEW-1783807356-attempt-1.md @@ -0,0 +1,3 @@ +# BAIS-REVIEW-1783807356-attempt-1 + +Forge 이슈 작업 브랜치 `forge/BAIS-REVIEW-1783807356-attempt-1`. -- 2.49.1 From b94c7c4b1baaa939ef3c2c54eba0f9c0c09ebbc1 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:02:53 +0000 Subject: [PATCH 2/7] =?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 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..fa4aa0d --- /dev/null +++ b/pom.xml @@ -0,0 +1,53 @@ + + 4.0.0 + + com.klaro.bais + bais-review-e2e-1783807356 + 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-maven-plugin + ${spring-boot.version} + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + ${java.version} + ${java.version} + + + + + \ No newline at end of file -- 2.49.1 From 020789d7299ded47f222235a826c17e941ce308b Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:02:54 +0000 Subject: [PATCH 3/7] =?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..fe0ba41 --- /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; + } +} \ No newline at end of file -- 2.49.1 From 527a8e1599237947f76c9e8b6947800d5b68b204 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:02:55 +0000 Subject: [PATCH 4/7] =?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 | 25 +++++++++++++++++++ 1 file changed, 25 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..e9a51b7 --- /dev/null +++ b/src/test/java/com/klaro/bais/PaymentServiceTest.java @@ -0,0 +1,25 @@ +package com.klaro.bais; + +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.Test; + +public class PaymentServiceTest { + + @Test + public void testApprovePositiveAmount() { + PaymentService service = new PaymentService(); + assertTrue(service.approve(100)); // Positive amount should be approved + } + + @Test + public void testApproveZeroAmount() { + PaymentService service = new PaymentService(); + assertFalse(service.approve(0)); // Zero amount should be rejected + } + + @Test + public void testApproveNegativeAmount() { + PaymentService service = new PaymentService(); + assertFalse(service.approve(-50)); // Negative amount should be rejected + } +} \ No newline at end of file -- 2.49.1 From dbfbe8e7c70b1eef561ee6a0063e9e26cda3c470 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:06:15 +0000 Subject: [PATCH 5/7] =?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(1/2)=20(BAIS-REVIEW-1783807356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/pom.xml b/pom.xml index fa4aa0d..4a61b6d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,16 +1,16 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.klaro.bais - bais-review-e2e-1783807356 + bais-review-e2e 1.0-SNAPSHOT jar 17 - 3.5.14 + 3.5.14 @@ -18,7 +18,7 @@ org.springframework.boot spring-boot-dependencies - ${spring-boot.version} + ${spring.boot.version} pom import @@ -30,6 +30,11 @@ org.springframework.boot spring-boot-starter + + org.springframework.boot + spring-boot-starter-test + test + @@ -37,17 +42,8 @@ org.springframework.boot spring-boot-maven-plugin - ${spring-boot.version} - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - ${java.version} - ${java.version} - + ${spring.boot.version} - \ No newline at end of file + -- 2.49.1 From 47fb32fc8ae4b53f566ed687099cf0174e637187 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:06:16 +0000 Subject: [PATCH 6/7] =?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(1/2)=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/klaro/bais/PaymentService.java b/src/main/java/com/klaro/bais/PaymentService.java index fe0ba41..0dd58ad 100644 --- a/src/main/java/com/klaro/bais/PaymentService.java +++ b/src/main/java/com/klaro/bais/PaymentService.java @@ -1,7 +1,8 @@ package com.klaro.bais; public class PaymentService { + public boolean approve(long amount) { return amount > 0; } -} \ No newline at end of file +} -- 2.49.1 From c7aca2117885e6cc5346987329f7232afcc7b5b0 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:06:18 +0000 Subject: [PATCH 7/7] =?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(1/2)=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, 11 insertions(+), 12 deletions(-) diff --git a/src/test/java/com/klaro/bais/PaymentServiceTest.java b/src/test/java/com/klaro/bais/PaymentServiceTest.java index e9a51b7..6695999 100644 --- a/src/test/java/com/klaro/bais/PaymentServiceTest.java +++ b/src/test/java/com/klaro/bais/PaymentServiceTest.java @@ -1,25 +1,24 @@ package com.klaro.bais; -import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; -public class PaymentServiceTest { +class PaymentServiceTest { + + private final PaymentService paymentService = new PaymentService(); @Test - public void testApprovePositiveAmount() { - PaymentService service = new PaymentService(); - assertTrue(service.approve(100)); // Positive amount should be approved + void testApprovePositiveAmount() { + assertTrue(paymentService.approve(100)); // 100 should be approved } @Test - public void testApproveZeroAmount() { - PaymentService service = new PaymentService(); - assertFalse(service.approve(0)); // Zero amount should be rejected + void testApproveZeroAmount() { + assertFalse(paymentService.approve(0)); // 0 should not be approved } @Test - public void testApproveNegativeAmount() { - PaymentService service = new PaymentService(); - assertFalse(service.approve(-50)); // Negative amount should be rejected + void testApproveNegativeAmount() { + assertFalse(paymentService.approve(-100)); // Negative should not be approved } -} \ No newline at end of file +} -- 2.49.1