Compare commits
5 commits
main
...
forge/BAIS
| Author | SHA1 | Date | |
|---|---|---|---|
| 047f537745 | |||
| 970ca49e9b | |||
| da8084d16e | |||
| 19a9e315da | |||
| 1148d9899d |
5 changed files with 77 additions and 0 deletions
3
.forge/BAIS-MULTI-1783812074-attempt-2.md
Normal file
3
.forge/BAIS-MULTI-1783812074-attempt-2.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# BAIS-MULTI-1783812074-attempt-2
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/BAIS-MULTI-1783812074-attempt-2`.
|
||||||
20
pom.xml
Normal file
20
pom.xml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
<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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<groupId>com.klaro.bais</groupId>
|
||||||
|
<artifactId>bais-platform</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>3.5.14</version>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>services/payments</module>
|
||||||
|
</modules>
|
||||||
|
</project>
|
||||||
18
services/payments/pom.xml
Normal file
18
services/payments/pom.xml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
<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">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>payments</artifactId>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-lang3</artifactId>
|
||||||
|
<version>3.18.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.klaro.bais.payments;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
public class PaymentReferenceService {
|
||||||
|
public String normalize(String input) {
|
||||||
|
return StringUtils.trimToEmpty(input);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,27 @@
|
||||||
|
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() {
|
||||||
|
String result = service.normalize(null);
|
||||||
|
assertEquals("", result);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithWhitespace() {
|
||||||
|
String result = service.normalize(" ");
|
||||||
|
assertEquals("");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testNormalizeWithNormalString() {
|
||||||
|
String result = service.normalize(" Test String ");
|
||||||
|
assertEquals("Test String", result);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue