MCPcopy Create free account
hub / github.com/castello/spring_basic / isValid

Method isValid

ch2/YoilTellerMVC6.java:55–60  ·  view source on GitHub ↗
(MyDate date)

Source from the content-addressed store, hash-verified

53 }
54
55 private boolean isValid(MyDate date) {
56 if(date.getYear()==-1 || date.getMonth()==-1 || date.getDay()==-1)
57 return false;
58
59 return (1<=date.getMonth() && date.getMonth()<=12) && (1<=date.getDay() && date.getDay()<=31); // 간단히 체크
60 }
61}

Callers 1

mainMethod · 0.95

Calls 3

getYearMethod · 0.80
getMonthMethod · 0.80
getDayMethod · 0.80

Tested by

no test coverage detected