Skip to content

Commit

Permalink
ExpiryDateCalculator class 구현 및 테스트 통과 - #19
Browse files Browse the repository at this point in the history
상수를 사용하여 통과시킨 후
구현을 일반화함
  • Loading branch information
hou27 committed Jan 12, 2023
1 parent a2b5be0 commit 756db58
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 김정호/src/test/java/com/hou27/chap03/ExpiryDateCalculator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.hou27.chap03;

import java.time.LocalDate;

public class ExpiryDateCalculator {
public LocalDate calculateExpiryDate(LocalDate billingDate, int payAmount) {
// return LocalDate.of(2019, 4, 1);
return billingDate.plusMonths(1);
}

}

0 comments on commit 756db58

Please sign in to comment.