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

Open
forge-bot wants to merge 9 commits from forge/BAIS-MULTI-1783812074-attempt-1 into main
Showing only changes of commit 7537463669 - Show all commits

View file

@ -1,28 +1,25 @@
package com.klaro.bais.payments; package com.klaro.bais.payments;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
class PaymentReferenceServiceTest { class PaymentReferenceServiceTest {
private final PaymentReferenceService service = new PaymentReferenceService(); private final PaymentReferenceService service = new PaymentReferenceService();
@Test @Test
void testNormalize_NullInput() { void testNormalizeWithNull() {
assertEquals("", service.normalize(null)); assertEquals("", service.normalize(null));
} }
@Test @Test
void testNormalize_EmptyInput() { void testNormalizeWithEmptyString() {
assertEquals("", service.normalize("")); assertEquals("", service.normalize(""));
} }
@Test @Test
void testNormalize_WhitespaceInput() { void testNormalizeWithNormalString() {
assertEquals("", service.normalize(" ")); assertEquals("Hello, World!", service.normalize(" Hello, World! "));
} }
}
@Test
void testNormalize_ValidInput() {
assertEquals("valid", service.normalize(" valid "));
}
}