package Ġcom . ther aj an ma ur ya . core . api Ċ Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . wh enever Ċ import Ġcom . ther aj an ma ur ya . core . models . Word Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . JUnit 4 Ċ import Ġorg . mockito . Mockito Ċ Ċ @ RunWith ( JUnit 4 :: class ) Ċ class ĠFall ing Word Service Test Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġfalling Word Service : ĠFall ing Word Service ĊĊĠĠĠ Ġprivate Ġval Ġwords Ġ= Ġarray ListOf ( ĊĠĠĠĠĠĠĠ ĠWord (" primary Ġschool ", Ġ" esc ue la Ġprimar ia "), ĊĠĠĠĠĠĠĠ ĠWord (" teacher ", Ġ" prof es or Ġ/ Ġprof es ora ") ĊĠĠĠ Ġ) ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġfalling Word Service Ġ= ĠMockito . mock ( Fall ing Word Service :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġget Words () Ġ{ ĊĠĠĠĠĠĠĠ Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġwhenever ( fall ing Word Service . get Words ()). thenReturn ( words ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ