From 784f64769355538077ad7c4d91e309a7cd924f44 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:30:32 +0000 Subject: [PATCH 1/3] forge: open work branch for BAIS-SPRING-ARC-002-attempt-1 --- .forge/BAIS-SPRING-ARC-002-attempt-1.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .forge/BAIS-SPRING-ARC-002-attempt-1.md diff --git a/.forge/BAIS-SPRING-ARC-002-attempt-1.md b/.forge/BAIS-SPRING-ARC-002-attempt-1.md new file mode 100644 index 0000000..c1fb965 --- /dev/null +++ b/.forge/BAIS-SPRING-ARC-002-attempt-1.md @@ -0,0 +1,3 @@ +# BAIS-SPRING-ARC-002-attempt-1 + +Forge 이슈 작업 브랜치 `forge/BAIS-SPRING-ARC-002-attempt-1`. -- 2.49.1 From 94f58025314aad7f1199c0578bfe7b73ee4ae66d Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:30:44 +0000 Subject: [PATCH 2/3] =?UTF-8?q?LCF=20=EA=B3=B5=ED=86=B5=20=ED=94=84?= =?UTF-8?q?=EB=A0=88=EC=9E=84=EC=9B=8C=ED=81=AC=20=EB=A7=A4=ED=95=91=20?= =?UTF-8?q?=EA=B7=9C=EC=B9=99=20=EC=A0=95=EC=9D=98=20(BAIS-SPRING-ARC-002)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/lcf/LcfMappingRules.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/main/java/com/example/lcf/LcfMappingRules.java diff --git a/src/main/java/com/example/lcf/LcfMappingRules.java b/src/main/java/com/example/lcf/LcfMappingRules.java new file mode 100644 index 0000000..fca8f56 --- /dev/null +++ b/src/main/java/com/example/lcf/LcfMappingRules.java @@ -0,0 +1,40 @@ +package com.example.lcf; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.transaction.annotation.Transactional; + +public class LcfMappingRules { + private static final Logger logger = LoggerFactory.getLogger(LcfMappingRules.class); + + public void lcfTry(Runnable action) { + try { + action.run(); + } catch (Exception e) { + lcfSetErr(e); + } + } + + public void lcfSetErr(Exception e) { + logger.error("Error occurred: ", e); + // 추가적인 에러 처리 로직 + } + + public void lcfLog(String message) { + logger.info(message); + } + + @Transactional + public void batchCommit(Runnable batchAction) { + try { + batchAction.run(); + } catch (Exception e) { + // 롤백 처리 + throw e; + } + } + + public double performDecimalOperation(double a, double b) { + return a + b; // 예시로 덧셈을 수행 + } +} -- 2.49.1 From 5203a15252d71edf41632b897babdf155a284ee8 Mon Sep 17 00:00:00 2001 From: forge-bot Date: Fri, 10 Jul 2026 13:30:45 +0000 Subject: [PATCH 3/3] =?UTF-8?q?LCF=20=EA=B3=B5=ED=86=B5=20=ED=94=84?= =?UTF-8?q?=EB=A0=88=EC=9E=84=EC=9B=8C=ED=81=AC=20=EB=A7=A4=ED=95=91=20?= =?UTF-8?q?=EA=B7=9C=EC=B9=99=20=EC=A0=95=EC=9D=98=20(BAIS-SPRING-ARC-002)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/lcf/LcfMappingRulesTest.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/java/com/example/lcf/LcfMappingRulesTest.java diff --git a/src/test/java/com/example/lcf/LcfMappingRulesTest.java b/src/test/java/com/example/lcf/LcfMappingRulesTest.java new file mode 100644 index 0000000..e190e70 --- /dev/null +++ b/src/test/java/com/example/lcf/LcfMappingRulesTest.java @@ -0,0 +1,24 @@ +package com.example.lcf; + +import org.junit.jupiter.api.Test; +import static org.mockito.Mockito.*; +import static org.junit.jupiter.api.Assertions.*; + +class LcfMappingRulesTest { + @Test + void testLcfTry() { + LcfMappingRules rules = new LcfMappingRules(); + Runnable action = mock(Runnable.class); + doThrow(new RuntimeException("Test Exception")).when(action).run(); + + rules.lcfTry(action); + // 예외가 발생했는지 확인하는 로직 추가 + } + + @Test + void testPerformDecimalOperation() { + LcfMappingRules rules = new LcfMappingRules(); + double result = rules.performDecimalOperation(5.0, 3.0); + assertEquals(8.0, result); + } +} -- 2.49.1