BAIS payments 멀티모듈 최소 구현 #3

Open
forge-bot wants to merge 5 commits from forge/BAIS-MAVEN-1783816946-attempt-3 into main
Showing only changes of commit 44876bbf0b - Show all commits

View file

@ -0,0 +1,24 @@
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 testNormalizeWithNull() {
assertEquals(""); // normalize(null) should return an empty string
}
@Test
void testNormalizeWithWhitespace() {
assertEquals(""); // normalize(" ") should return an empty string
}
@Test
void testNormalizeWithNormalString() {
assertEquals("test", service.normalize(" test ")); // Should trim and return "test"
}
}