package Ġcom . uli ian . us chedule Ċ Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Test Ċ import Ġjava . time . LocalDate Ċ Ċ class ĠDays OfWeek OfMonth Expression Test Ġ{ ĊĠĠĠ Ġval Ġexpress Ġ= ĠSchedule Expression . create Expression (" MW Ġ 1 , 2 Ġ 1 , 3 , 5 ") ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġhis Test Success (){ ĊĠĠĠĠĠĠĠ ĠAssert . assertTrue ( express . is Hit ( LocalDate . of ( 2 0 2 1 , 1 0 , 1 ))) ĊĠĠĠĠĠĠĠ ĠAssert . assertTrue ( express . is Hit ( LocalDate . of ( 2 0 2 1 , 1 0 , 6 ))) ĊĠĠĠĠĠĠĠ ĠAssert . assertFalse ( express . is Hit ( LocalDate . of ( 2 0 2 1 , 1 0 , 2 0 ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġgenerate Test Success (){ ĊĠĠĠĠĠĠĠ Ġval Ġdays Ġ= Ġexpress . next Date ( LocalDate . of ( 2 0 2 1 , 1 0 , 3 ), 1 0 ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days . size , 1 0 ) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 0 ], LocalDate . of ( 2 0 2 1 , 1 0 , 4 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 1 ], LocalDate . of ( 2 0 2 1 , 1 0 , 6 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 2 ], LocalDate . of ( 2 0 2 1 , 1 0 , 8 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 3 ], LocalDate . of ( 2 0 2 1 , 1 1 , 1 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 4 ], LocalDate . of ( 2 0 2 1 , 1 1 , 3 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 5 ], LocalDate . of ( 2 0 2 1 , 1 1 , 5 )) ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( days [ 6 ], LocalDate . of ( 2 0 2 1 , 1 1 , 8 )) ĊĠĠĠ Ġ} Ċ }