Compare commits

..

12 commits

Author SHA1 Message Date
fec4828f0d Merge pull request 'PaymentService 승인 규칙 구현' (#5) from forge/BAIS-SOURCE-1783702539-attempt-1 into main 2026-07-10 16:59:38 +00:00
c8a931750f PaymentService 승인 규칙 구현 (BAIS-SOURCE-1783702539)
All checks were successful
ci / test (pull_request) Successful in 1m25s
2026-07-10 16:56:02 +00:00
af5ee7ca80 PaymentService 승인 규칙 구현 (BAIS-SOURCE-1783702539) 2026-07-10 16:56:00 +00:00
1d1a558cfc PaymentService 승인 규칙 구현 (BAIS-SOURCE-1783702539) 2026-07-10 16:55:59 +00:00
4ecbcc77c4 forge: open work branch for BAIS-SOURCE-1783702539-attempt-1 2026-07-10 16:55:47 +00:00
a0a0a28cde Merge pull request 'Spring Boot 최소 전환 단위 구현' (#4) from forge/BAIS-NATIVE-1783698057-attempt-1 into main 2026-07-10 15:43:35 +00:00
1d856ab090 Spring Boot 최소 전환 단위 구현 (BAIS-NATIVE-1783698057)
All checks were successful
ci / test (pull_request) Successful in 1m37s
2026-07-10 15:41:20 +00:00
18ccadd53a Spring Boot 최소 전환 단위 구현 (BAIS-NATIVE-1783698057) 2026-07-10 15:41:19 +00:00
e0b325fea8 Spring Boot 최소 전환 단위 구현 (BAIS-NATIVE-1783698057) 2026-07-10 15:41:17 +00:00
f83ecfe64b forge: open work branch for BAIS-NATIVE-1783698057-attempt-1 2026-07-10 15:41:06 +00:00
c6e831dc37 forge: update CI machine gate 2026-07-10 15:41:04 +00:00
9b1882ef9f Merge pull request 'BAIS 소스 인벤토리 분석 문서 작성' (#1) from forge/BAIS-E2E-ANA-001-attempt-1 into main
Some checks are pending
ci / test (push) Waiting to run
2026-07-10 14:51:02 +00:00
8 changed files with 112 additions and 1 deletions

View file

@ -0,0 +1,3 @@
# BAIS-NATIVE-1783698057-attempt-1
Forge 이슈 작업 브랜치 `forge/BAIS-NATIVE-1783698057-attempt-1`.

View file

@ -0,0 +1,3 @@
# BAIS-SOURCE-1783702539-attempt-1
Forge 이슈 작업 브랜치 `forge/BAIS-SOURCE-1783702539-attempt-1`.

View file

@ -1,5 +1,5 @@
name: ci name: ci
on: [push, pull_request] on: [pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest

40
pom.xml Normal file
View file

@ -0,0 +1,40 @@
<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.example</groupId>
<artifactId>bais-gate-e2e</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version>
<relativePath/> <!-- lookup parent from repository -->
</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>

View file

@ -0,0 +1,11 @@
package com.example.baisgate;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class BaisGateApplication {
public static void main(String[] args) {
SpringApplication.run(BaisGateApplication.class, args);
}
}

View file

@ -0,0 +1,10 @@
package com.example.baisgate;
public class PaymentService {
public String approve(String transactionId) {
if (transactionId == null || transactionId.trim().isEmpty()) {
throw new IllegalArgumentException("Transaction ID cannot be blank");
}
return "APPROVED:" + transactionId;
}
}

View file

@ -0,0 +1,12 @@
package com.example.baisgate;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class BaisGateApplicationTests {
@Test
void contextLoads() {
}
}

View file

@ -0,0 +1,32 @@
package com.example.baisgate;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PaymentServiceTest {
@Test
void testApprove_WithValidTransactionId_ReturnsApproved() {
PaymentService paymentService = new PaymentService();
String result = paymentService.approve("12345");
assertEquals("APPROVED:12345", result);
}
@Test
void testApprove_WithBlankTransactionId_ThrowsIllegalArgumentException() {
PaymentService paymentService = new PaymentService();
Exception exception = assertThrows(IllegalArgumentException.class, () -> {
paymentService.approve("");
});
assertEquals("Transaction ID cannot be blank", exception.getMessage());
}
@Test
void testApprove_WithNullTransactionId_ThrowsIllegalArgumentException() {
PaymentService paymentService = new PaymentService();
Exception exception = assertThrows(IllegalArgumentException.class, () -> {
paymentService.approve(null);
});
assertEquals("Transaction ID cannot be blank", exception.getMessage());
}
}