Compare commits
5 commits
main
...
forge/BAIS
| Author | SHA1 | Date | |
|---|---|---|---|
| 46fe1f3c0e | |||
| 47407779a4 | |||
| d7ec984015 | |||
| 7040447285 | |||
| c083ec9058 |
5 changed files with 21 additions and 36 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
# BAIS-CTX-1783821073-attempt-4
|
# BAIS-CTX-1783821073-attempt-1
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-4`.
|
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-1`.
|
||||||
11
pom.xml
11
pom.xml
|
|
@ -1,22 +1,15 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.5.14</version>
|
<version>3.5.14</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>com.klaro.bais</groupId>
|
<groupId>com.klaro.bais</groupId>
|
||||||
<artifactId>bais-platform</artifactId>
|
<artifactId>bais-platform</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>services/payments</module>
|
<module>services/payments</module>
|
||||||
</modules>
|
</modules>
|
||||||
|
</project>
|
||||||
</project>
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,11 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.klaro.bais</groupId>
|
<groupId>com.klaro.bais</groupId>
|
||||||
<artifactId>bais-platform</artifactId>
|
<artifactId>bais-platform</artifactId>
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>payments</artifactId>
|
<artifactId>payments</artifactId>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
@ -18,12 +13,5 @@
|
||||||
<artifactId>commons-lang3</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
<version>3.18.0</version>
|
<version>3.18.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
|
||||||
<version>3.5.14</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
</project>
|
||||||
</project>
|
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,4 @@ public class PaymentReferenceService {
|
||||||
public String normalize(String input) {
|
public String normalize(String input) {
|
||||||
return StringUtils.trimToEmpty(input);
|
return StringUtils.trimToEmpty(input);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,28 @@
|
||||||
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.assertEquals;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
class PaymentReferenceServiceTest {
|
class PaymentReferenceServiceTest {
|
||||||
|
private final PaymentReferenceService paymentReferenceService = new PaymentReferenceService();
|
||||||
private final PaymentReferenceService service = new PaymentReferenceService();
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalizeNull() {
|
void testNormalize_NullInput() {
|
||||||
assertEquals("", service.normalize(null));
|
assertEquals("", paymentReferenceService.normalize(null));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalizeEmpty() {
|
void testNormalize_EmptyInput() {
|
||||||
assertEquals("", service.normalize(" "));
|
assertEquals("", paymentReferenceService.normalize(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalizeNormalString() {
|
void testNormalize_WhitespaceInput() {
|
||||||
assertEquals("test", service.normalize(" test "));
|
assertEquals("", paymentReferenceService.normalize(" "));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@Test
|
||||||
|
void testNormalize_RegularInput() {
|
||||||
|
assertEquals("Hello", paymentReferenceService.normalize(" Hello "));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue