Compare commits
No commits in common. "205923686bf90d29e9d3eed0b03c6090a49724dd" and "7cb9e4c18f4019b65e790e48386be4792a580bca" have entirely different histories.
205923686b
...
7cb9e4c18f
4 changed files with 0 additions and 76 deletions
|
|
@ -1,3 +0,0 @@
|
|||
# BAIS-REVIEW-1783808744-attempt-1
|
||||
|
||||
Forge 이슈 작업 브랜치 `forge/BAIS-REVIEW-1783808744-attempt-1`.
|
||||
42
pom.xml
42
pom.xml
|
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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>payment-service</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>3.5.14</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<java.version>17</java.version>
|
||||
</properties>
|
||||
|
||||
<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>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
package com.klaro.bais;
|
||||
|
||||
public class PaymentService {
|
||||
public boolean approve(long amount) {
|
||||
return amount > 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.klaro.bais;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
class PaymentServiceTest {
|
||||
|
||||
private final PaymentService paymentService = new PaymentService();
|
||||
|
||||
@Test
|
||||
void testApprovePositiveAmount() {
|
||||
assertTrue(paymentService.approve(100));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testApproveZeroAmount() {
|
||||
assertFalse(paymentService.approve(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testApproveNegativeAmount() {
|
||||
assertFalse(paymentService.approve(-100));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue