From 527a8e1599237947f76c9e8b6947800d5b68b204 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Sat, 11 Jul 2026 22:02:55 +0000 Subject: [PATCH] =?UTF-8?q?Spring=20Boot=203.5.14=20=EA=B2=B0=EC=A0=9C=20?= =?UTF-8?q?=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