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

Open
forge-bot wants to merge 5 commits from forge/BAIS-CI-1783819034-attempt-3 into main
Showing only changes of commit fa03e8eb99 - Show all commits

View file

@ -0,0 +1,22 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
class PaymentReferenceServiceTest {
private final PaymentReferenceService service = new PaymentReferenceService();
@Test
void testNormalize_NullString() {
assertEquals(""); // null should be normalized to empty string
}
@Test
void testNormalize_EmptyString() {
assertEquals(""); // empty string should remain empty
}
@Test
void testNormalize_ValidString() {
String input = " some text ";
assertEquals("some text", service.normalize(input)); // should trim spaces
}
}