Compare commits
5 commits
main
...
forge/BAIS
| Author | SHA1 | Date | |
|---|---|---|---|
| 371eb212b8 | |||
| 04a830ed22 | |||
| 89781626fd | |||
| 70a3e44f50 | |||
| 70c42449c6 |
5 changed files with 9 additions and 19 deletions
|
|
@ -1,3 +1,3 @@
|
|||
# BAIS-CTX-1783821073-attempt-4
|
||||
# BAIS-CTX-1783821073-attempt-3
|
||||
|
||||
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-4`.
|
||||
Forge 이슈 작업 브랜치 `forge/BAIS-CTX-1783821073-attempt-3`.
|
||||
9
pom.xml
9
pom.xml
|
|
@ -1,15 +1,11 @@
|
|||
<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">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.5.14</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.klaro.bais</groupId>
|
||||
<artifactId>bais-platform</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
|
|
@ -18,5 +14,4 @@
|
|||
<modules>
|
||||
<module>services/payments</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -1,16 +1,12 @@
|
|||
<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">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>com.klaro.bais</groupId>
|
||||
<artifactId>bais-platform</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>payments</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
@ -21,9 +17,7 @@
|
|||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<version>3.5.14</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -3,6 +3,7 @@ package com.klaro.bais.payments;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
public class PaymentReferenceService {
|
||||
|
||||
public String normalize(String input) {
|
||||
return StringUtils.trimToEmpty(input);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ class PaymentReferenceServiceTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
void testNormalizeEmpty() {
|
||||
void testNormalizeWhitespace() {
|
||||
assertEquals("", service.normalize(" "));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testNormalizeNormalString() {
|
||||
assertEquals("test", service.normalize(" test "));
|
||||
void testNormalizeString() {
|
||||
assertEquals("test", service.normalize(" test "));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue