package Ġio . m verse . k slack Ċ Ċ import Ġio . m verse . k slack . api . methods . request . rem inders . Rem inders Add Request Ċ import Ġio . m verse . k slack . api . methods . request . rem inders . Rem inders Complete Request Ċ import Ġio . m verse . k slack . api . methods . request . rem inders . Rem inders Delete Request Ċ import Ġio . m verse . k slack . api . methods . request . rem inders . Rem inders Info Request Ċ import Ġorg . hamcrest . Core Matchers .` is ` Ċ import Ġorg . junit . Assert . assertThat Ċ import Ġorg . junit . Test Ċ Ċ class ĠSlack _ rem inders _ Test Ġ{ ĊĊĠ Ġinternal Ġvar Ġslack Ġ= Ġio . m verse . k slack . Slack () ĊĠ Ġinternal Ġvar Ġtoken Ġ= ĠSystem . getenv ( Constants . SL ACK _ TEST _ O AUTH _ ACCESS _ TOKEN ) ĊĊĠ Ġ@ Test ĊĠ Ġ@ Throws ( Exception :: class ) ĊĠ Ġfun Ġtest () Ġ{ ĊĠĠĠ Ġval Ġadd Response Ġ= Ġslack . rem inders Add ( Rem inders Add Request ( ĊĠĠĠĠĠĠĠ Ġtoken Ġ= Ġtoken , ĊĠĠĠĠĠĠĠ Ġtext Ġ= Ġ" Don 't Ġforget Ġit !", ĊĠĠĠĠĠĠĠ Ġtime Ġ= Ġ" 1 0 " ĊĠĠĠ Ġ)) ĊĠĠĠ ĠassertThat ( add Response . ok , Ġ` is `( true )) ĊĊĠĠĠ Ġval Ġreminder Id Ġ= Ġadd Response . reminder !!. id ĊĊĠĠĠ Ġval Ġinfo Response Ġ= Ġslack . rem inders Info ( Rem inders Info Request ( ĊĠĠĠĠĠĠĠ Ġtoken Ġ= Ġtoken , ĊĠĠĠĠĠĠĠ Ġreminder Ġ= Ġreminder Id ĊĠĠĠ Ġ)) ĊĠĠĠ ĠassertThat ( info Response . ok , Ġ` is `( true )) ĊĊĠĠĠ Ġval Ġcomplete Response Ġ= Ġslack . rem inders Complete ( Rem inders Complete Request ( ĊĠĠĠĠĠĠĠ Ġtoken Ġ= Ġtoken , ĊĠĠĠĠĠĠĠ Ġreminder Ġ= Ġreminder Id ĊĠĠĠ Ġ)) ĊĠĠĠ ĠassertThat ( complete Response . ok , Ġ` is `( true )) ĊĊĠĠĠ Ġval Ġdelete Response Ġ= Ġslack . rem inders Delete ( Rem inders Delete Request ( ĊĠĠĠĠĠĠĠ Ġtoken Ġ= Ġtoken , ĊĠĠĠĠĠĠĠ Ġreminder Ġ= Ġreminder Id ĊĠĠĠ Ġ)) ĊĠĠĠ ĠassertThat ( delete Response . ok , Ġ` is `( true )) ĊĠ Ġ} Ċ }