Compare commits
No commits in common. "forge/BAIS-REVIEW-1783807356-attempt-2" and "main" have entirely different histories.
forge/BAIS
...
main
4 changed files with 0 additions and 82 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
# BAIS-REVIEW-1783807356-attempt-2
|
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/BAIS-REVIEW-1783807356-attempt-2`.
|
|
||||||
49
pom.xml
49
pom.xml
|
|
@ -1,49 +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">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.klaro.bais</groupId>
|
|
||||||
<artifactId>bais-payment-service</artifactId>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<java.version>17</java.version>
|
|
||||||
<spring.boot.version>3.5.14</spring.boot.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencyManagement>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-dependencies</artifactId>
|
|
||||||
<version>${spring.boot.version}</version>
|
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</dependencyManagement>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.springframework.boot</groupId>
|
|
||||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
||||||
<version>${spring.boot.version}</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
package com.klaro.bais;
|
|
||||||
|
|
||||||
public class PaymentService {
|
|
||||||
public boolean approve(long amount) {
|
|
||||||
return amount > 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
package com.klaro.bais;
|
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
|
|
||||||
public class PaymentServiceTest {
|
|
||||||
private final PaymentService paymentService = new PaymentService();
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testApproveWithPositiveAmount() {
|
|
||||||
assertTrue(paymentService.approve(100));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testApproveWithZeroAmount() {
|
|
||||||
assertFalse(paymentService.approve(0));
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
public void testApproveWithNegativeAmount() {
|
|
||||||
assertFalse(paymentService.approve(-100));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue