package Ġorg . simple . clin ic . drug stock rem inders . enter drug stock Ċ Ċ import Ġcom . spotify . mob ius . test . Next Matchers . has Model Ċ import Ġcom . spotify . mob ius . test . Next Matchers . has No Effects Ċ import Ġcom . spotify . mob ius . test . Update Spec Ċ import Ġcom . spotify . mob ius . test . Update Spec . assertThat Next Ċ import Ġorg . junit . Test Ċ import Ġjava . util . Optional Ċ Ċ class ĠEnter Dr ug Stock Update Test Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` when Ġdrug Ġstock Ġform Ġurl Ġis Ġloaded , Ġthen Ġupdate Ġthe Ġmodel `() Ġ{ ĊĠĠĠ Ġval Ġdefault Model Ġ= ĠEnter Dr ug Stock Model . create () ĊĠĠĠ Ġval Ġdrug Stock Form Url Ġ= Ġ" drug _ stock _ form _ url " ĊĊĠĠĠ ĠUpdate Spec ( Enter Dr ug Stock Update ()) ĊĠĠĠĠĠĠĠ Ġ. given ( default Model ) ĊĠĠĠĠĠĠĠ Ġ. when Event ( Dr ug Stock Form Url Loaded ( Optional . of ( drug Stock Form Url ))) ĊĠĠĠĠĠĠĠ Ġ. then ( assertThat Next ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhas Model ( default Model . drug Stock Form Url Loaded ( drug Stock Form Url )), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhas No Effects () ĊĠĠĠĠĠĠĠ Ġ)) ĊĠ Ġ} Ċ } Ċ