BAIS payments 멀티모듈 최소 구현 (2/2) (iss-cb58f86e71d9)
Some checks failed
ci / test (pull_request) Failing after 1m23s
Some checks failed
ci / test (pull_request) Failing after 1m23s
This commit is contained in:
parent
a4bc99c381
commit
67d244255c
1 changed files with 25 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.klaro.bais.payments;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
|
class PaymentReferenceServiceTest {
|
||||||
|
|
||||||
|
private PaymentReferenceService paymentReferenceService = new PaymentReferenceService();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithNull() {
|
||||||
|
assertEquals("", paymentReferenceService.normalize(null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithBlank() {
|
||||||
|
assertEquals("", paymentReferenceService.normalize(" "));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithValidString() {
|
||||||
|
String input = " test ";
|
||||||
|
assertEquals("test", paymentReferenceService.normalize(input));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue