package Ġcom . bad oo . reak t ive . maybe Ċ Ċ import Ġcom . bad oo . reak t ive . test . comp letable . assert Complete Ċ import Ġcom . bad oo . reak t ive . test . comp letable . test Ċ import Ġcom . bad oo . reak t ive . test . maybe . Test Maybe Ċ import Ġkotlin . test . Test Ċ Ċ class ĠAs Comp letable Test Ġ: ĠMaybe To Comp letable Tests Ġby ĠMaybe To Comp letable Tests ({ Ġas Comp letable () Ġ}) Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġupstream Ġ= ĠTest Maybe < Int ?> () ĊĠĠĠ Ġprivate Ġval Ġobserver Ġ= Ġupstream . as Comp letable (). test () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcompletes _ WHEN _ upstream _ succeeded _ with _ non _ null _ value () Ġ{ ĊĠĠĠĠĠĠĠ Ġupstream . on Success ( 0 ) ĊĊĠĠĠĠĠĠĠ Ġobserver . assert Complete () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcompletes _ WHEN _ upstream _ succeeded _ with _ null _ value () Ġ{ ĊĠĠĠĠĠĠĠ Ġupstream . on Success ( null ) ĊĊĠĠĠĠĠĠĠ Ġobserver . assert Complete () ĊĠĠĠ Ġ} Ċ }