From 756db58ce991e7bc353cd55864b018d8c232fac0 Mon Sep 17 00:00:00 2001 From: hou27 Date: Thu, 12 Jan 2023 18:18:08 +0900 Subject: [PATCH] =?UTF-8?q?ExpiryDateCalculator=20class=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=20=EB=B0=8F=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20=ED=86=B5?= =?UTF-8?q?=EA=B3=BC=20-=20#19?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 상수를 사용하여 통과시킨 후 구현을 일반화함 --- .../java/com/hou27/chap03/ExpiryDateCalculator.java" | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 "\352\271\200\354\240\225\355\230\270/src/test/java/com/hou27/chap03/ExpiryDateCalculator.java" diff --git "a/\352\271\200\354\240\225\355\230\270/src/test/java/com/hou27/chap03/ExpiryDateCalculator.java" "b/\352\271\200\354\240\225\355\230\270/src/test/java/com/hou27/chap03/ExpiryDateCalculator.java" new file mode 100644 index 0000000..3c3bb4b --- /dev/null +++ "b/\352\271\200\354\240\225\355\230\270/src/test/java/com/hou27/chap03/ExpiryDateCalculator.java" @@ -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); + } + +}