BAIS payments 멀티모듈 최소 구현 (BAIS-MAVEN-1783816946)
Some checks failed
ci / test (pull_request) Failing after 1m20s
Some checks failed
ci / test (pull_request) Failing after 1m20s
This commit is contained in:
parent
2c6b01676b
commit
20ed5fcd00
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 service = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_NullInput() {
|
||||||
|
assertEquals("", service.normalize(null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_EmptyInput() {
|
||||||
|
assertEquals("", service.normalize(""));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_WhitespaceInput() {
|
||||||
|
assertEquals("", service.normalize(" "));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_ValidInput() {
|
||||||
|
assertEquals("valid", service.normalize(" valid "));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue