BAIS payments 멀티모듈 최소 구현 (BAIS-CTX-1783821073)
Some checks failed
ci / test (pull_request) Failing after 1m14s
Some checks failed
ci / test (pull_request) Failing after 1m14s
This commit is contained in:
parent
47407779a4
commit
46fe1f3c0e
1 changed files with 28 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.klaro.bais.payments;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
class PaymentReferenceServiceTest {
|
||||||
|
private final PaymentReferenceService paymentReferenceService = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_NullInput() {
|
||||||
|
assertEquals("", paymentReferenceService.normalize(null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_EmptyInput() {
|
||||||
|
assertEquals("", paymentReferenceService.normalize(""));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_WhitespaceInput() {
|
||||||
|
assertEquals("", paymentReferenceService.normalize(" "));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_RegularInput() {
|
||||||
|
assertEquals("Hello", paymentReferenceService.normalize(" Hello "));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue