BAIS payments 멀티모듈 최소 구현 (BAIS-CI-1783819034)
Some checks failed
ci / test (pull_request) Failing after 1m11s
Some checks failed
ci / test (pull_request) Failing after 1m11s
This commit is contained in:
parent
cdbe543dee
commit
fa03e8eb99
1 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
class PaymentReferenceServiceTest {
|
||||||
|
private final PaymentReferenceService service = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_NullString() {
|
||||||
|
assertEquals(""); // null should be normalized to empty string
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_EmptyString() {
|
||||||
|
assertEquals(""); // empty string should remain empty
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_ValidString() {
|
||||||
|
String input = " some text ";
|
||||||
|
assertEquals("some text", service.normalize(input)); // should trim spaces
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue