package Ġorg . simple . clin ic . home . over due Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġjunit params . JUnit Params Runner Ċ import Ġjunit params . Parameters Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . simple . clin ic . home . over due . Over due Appointment . Risk Level Ċ import Ġorg . simple . clin ic . patient . Patient M ocker Ċ Ċ @ RunWith ( JUnit Params Runner :: class ) Ċ class ĠOver due Appointment Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġ@ Parameters ( ĊĠĠĠĠĠ Ġ" 0 , ĠH IG HE ST ", ĊĠĠĠĠĠ Ġ" 1 , ĠV ERY _ HIGH ", ĊĠĠĠĠĠ Ġ" 2 , ĠHIGH ", ĊĠĠĠĠĠ Ġ" 3 , ĠREG ULAR ", ĊĠĠĠĠĠ Ġ" 4 , ĠLOW ", ĊĠĠĠĠĠ Ġ" 5 , ĠNONE " ĊĠ Ġ) ĊĠ Ġfun Ġ` should Ġcalculate Ġrisk Ġlevel Ġenum Ġfrom Ġindices Ġcorrectly `( risk Level Index : ĠInt , Ġexpected Risk Level : ĠR isk Level ) Ġ{ ĊĠĠĠ Ġif Ġ( risk Level Index Ġ> Ġ 5 ) Ġ{ ĊĠĠĠĠĠ Ġthrow ĠAssertionError () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġover due Appointment Ġ= ĠPatient M ocker . over due Appointment ( risk Level Index Ġ= Ġrisk Level Index ) ĊĠĠĠ ĠassertThat ( over due Appointment . risk Level ). isEqualTo ( expected Risk Level ) ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġ@ Parameters ( ĊĠĠĠĠĠ Ġ" HIG HE ST , Ġtrue ", ĊĠĠĠĠĠ Ġ" VERY _ HIGH , Ġtrue ", ĊĠĠĠĠĠ Ġ" HIGH , Ġtrue ", ĊĠĠĠĠĠ Ġ" REG ULAR , Ġfalse ", ĊĠĠĠĠĠ Ġ" LOW , Ġfalse ", ĊĠĠĠĠĠ Ġ" NONE , Ġfalse " ĊĠ Ġ) ĊĠ Ġfun Ġ` should Ġcalculate Ġif Ġa Ġpatient Ġis Ġat Ġrisk Ġcorrectly `( risk Level : ĠR isk Level , Ġis Expected At High Risk : ĠBoolean ) Ġ{ ĊĠĠĠ Ġval Ġover due Appointment Ġ= ĠPatient M ocker . over due Appointment ( risk Level Ġ= Ġrisk Level ) ĊĠĠĠ ĠassertThat ( over due Appointment . is At High Risk ). isEqualTo ( is Expected At High Risk ) ĊĠ Ġ} Ċ } Ċ