Compare commits
6 commits
forge/BAIS
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| eef89c0635 | |||
| c52405f3af | |||
| 20ea4732a7 | |||
| 407114e3ff | |||
| 8c5cd50459 | |||
| 00e5f84998 |
5 changed files with 19 additions and 9 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
# BAIS-CTX-1783821073-attempt-3
|
# BAIS-CTX-1783821073-attempt-4
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-3`.
|
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-4`.
|
||||||
9
pom.xml
9
pom.xml
|
|
@ -1,11 +1,15 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<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">
|
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>
|
||||||
|
|
@ -14,4 +18,5 @@
|
||||||
<modules>
|
<modules>
|
||||||
<module>services/payments</module>
|
<module>services/payments</module>
|
||||||
</modules>
|
</modules>
|
||||||
</project>
|
|
||||||
|
</project>
|
||||||
|
|
@ -1,12 +1,16 @@
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<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">
|
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>
|
||||||
|
|
@ -17,7 +21,9 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<version>3.5.14</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -3,7 +3,6 @@ package com.klaro.bais.payments;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
public class PaymentReferenceService {
|
public class PaymentReferenceService {
|
||||||
|
|
||||||
public String normalize(String input) {
|
public String normalize(String input) {
|
||||||
return StringUtils.trimToEmpty(input);
|
return StringUtils.trimToEmpty(input);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,12 @@ class PaymentReferenceServiceTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalizeWhitespace() {
|
void testNormalizeEmpty() {
|
||||||
assertEquals("", service.normalize(" "));
|
assertEquals("", service.normalize(" "));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void testNormalizeString() {
|
void testNormalizeNormalString() {
|
||||||
assertEquals("test", service.normalize(" test "));
|
assertEquals("test", service.normalize(" test "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue