BAIS payments 멀티모듈 최소 구현 #3
1 changed files with 22 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue