[일지] 2026.02.09

김재만·2026년 2월 9일

작업한 것

  • AI Agent BDD → TDD 연습

  • REQ-MONEY-001

    // MoneyTest.java
    package com.inc.tdd_practice;
    
    import org.junit.jupiter.api.Test;
    import static org.assertj.core.api.Assertions.assertThat;
    
    public class MoneyTest {
    
        @Test
        void testMultiplication() {
            // [SPEC-MONEY-001]
            // Given I have a "Dollar" amount of 5
            Dollar five = new Dollar(5);
    
            // When I multiply it by 2
            five.times(2);
    
            // Then the result should be 10 Dollars
            assertThat(five.amount).isEqualTo(10);
        }
    }
  • REQ-MONEY-002

    package com.inc.tdd_practice;
    
    import org.junit.jupiter.api.Test;
    import static org.assertj.core.api.Assertions.assertThat;
    
    public class MoneyTest {
    
    	  ...
    
        @Test
        void testEquality() {
            // [SPEC-MONEY-002]
            // Scenario: Compare same currency and amount
            // Given I have a "Dollar" amount of 5
            // And I have another "Dollar" amount of 5
            // Then they should be equal
            assertThat(new Dollar(5)).isEqualTo(new Dollar(5));
    
            // Scenario: Compare different amounts
            // Given I have a "Dollar" amount of 5
            // And I have another "Dollar" amount of 6
            // Then they should not be equal
            assertThat(new Dollar(5)).isNotEqualTo(new Dollar(6));
        }
    }
  • REQ-MONEY-003
    업로드중..

이슈

  • 처음에 제대로 된 REQ리스트업이 안됨(중간 중간 확장) →대응할 방법 필요

다음 작업

  • TDD 환전문제 마무리

마무리

아이고 시간 없다

profile
듣는 것을 좋아하는 개발자입니다

0개의 댓글