BAIS payments 멀티모듈 최소 구현 (BAIS-MAVEN-1783816946)
Some checks failed
ci / test (pull_request) Failing after 1m12s
Some checks failed
ci / test (pull_request) Failing after 1m12s
This commit is contained in:
parent
697235afe7
commit
44876bbf0b
1 changed files with 24 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
||||||
|
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(""); // normalize(null) should return an empty string
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithWhitespace() {
|
||||||
|
assertEquals(""); // normalize(" ") should return an empty string
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithNormalString() {
|
||||||
|
assertEquals("test", service.normalize(" test ")); // Should trim and return "test"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue