BAIS payments 멀티모듈 최소 구현 (1/2) (BAIS-MULTI-1783812074)
Some checks failed
ci / test (pull_request) Failing after 1m8s
Some checks failed
ci / test (pull_request) Failing after 1m8s
This commit is contained in:
parent
cf485f5b9f
commit
7537463669
1 changed files with 8 additions and 11 deletions
|
|
@ -1,28 +1,25 @@
|
||||||
package com.klaro.bais.payments;
|
package com.klaro.bais.payments;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
class PaymentReferenceServiceTest {
|
class PaymentReferenceServiceTest {
|
||||||
|
|
||||||
private final PaymentReferenceService service = new PaymentReferenceService();
|
private final PaymentReferenceService service = new PaymentReferenceService();
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalize_NullInput() {
|
void testNormalizeWithNull() {
|
||||||
assertEquals("", service.normalize(null));
|
assertEquals("", service.normalize(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalize_EmptyInput() {
|
void testNormalizeWithEmptyString() {
|
||||||
assertEquals("", service.normalize(""));
|
assertEquals("", service.normalize(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalize_WhitespaceInput() {
|
void testNormalizeWithNormalString() {
|
||||||
assertEquals("", service.normalize(" "));
|
assertEquals("Hello, World!", service.normalize(" Hello, World! "));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@Test
|
|
||||||
void testNormalize_ValidInput() {
|
|
||||||
assertEquals("valid", service.normalize(" valid "));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue