BAIS payments 멀티모듈 최소 구현 (BAIS-MULTI-1783814676)
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
22d42e16a0
commit
6a0178e3a7
1 changed files with 29 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.klaro.bais.payments;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
class PaymentReferenceServiceTest {
|
||||||
|
|
||||||
|
private final PaymentReferenceService service = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithNull() {
|
||||||
|
assertEquals("", service.normalize(null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithEmptyString() {
|
||||||
|
assertEquals("", service.normalize(""));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithWhiteSpace() {
|
||||||
|
assertEquals("", service.normalize(" "));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithValidString() {
|
||||||
|
assertEquals("validString", service.normalize(" validString " ));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue