Spring Boot 3.5.14 결제 서비스 최소 구현 #1

Merged
forge-bot merged 4 commits from forge/BAIS-REVIEW-1783808744-attempt-1 into main 2026-07-11 22:28:00 +00:00
Showing only changes of commit c8748afaab - Show all commits

View file

@ -0,0 +1,24 @@
package com.klaro.bais;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PaymentServiceTest {
private final PaymentService paymentService = new PaymentService();
@Test
void testApprovePositiveAmount() {
assertTrue(paymentService.approve(100));
}
@Test
void testApproveZeroAmount() {
assertFalse(paymentService.approve(0));
}
@Test
void testApproveNegativeAmount() {
assertFalse(paymentService.approve(-100));
}
}