BAIS payments 멀티모듈 최소 구현 #4
1 changed files with 24 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
class PaymentReferenceServiceTest {
|
||||||
|
private final PaymentReferenceService service = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_WithNullInput() {
|
||||||
|
String result = service.normalize(null);
|
||||||
|
assertEquals("", result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_WithEmptyString() {
|
||||||
|
String result = service.normalize(" ");
|
||||||
|
assertEquals("", result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_WithNormalString() {
|
||||||
|
String result = service.normalize(" Test String ");
|
||||||
|
assertEquals("Test String", result);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue