package Ġcom . cv . cv concept . cv summary activity . view . skills fragment . presentation Ċ Ċ import Ġcom . cv . cv concept . cv summary activity . view . skills fragment . domain . Skills Cv Domain Model Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġcom . n ha ar man . mockito _ kotlin . verify Ċ import Ġio . reactivex . subjects . Async Subject Ċ import Ġio . reactivex . subjects . Subject Ċ import Ġorg . junit . Test Ċ Ċ class ĠSk ills Presenter Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġview : ĠSk ills Fragment M VP . View Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġskills Provider Observer : ĠSubject < Skills Cv Domain Model > Ġ= ĠAsync Subject . create () ĊĊĠĠĠ Ġprivate Ġval Ġtested Ġ= ĠSk ills Presenter ( skills Provider Observer . hide ()) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Show Skill List () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġexpected Ġ= ĠSk ills Cv Domain Model ( listOf ()) ĊĊĠĠĠĠĠĠĠ Ġtested . attach ( view ) ĊĊĠĠĠĠĠĠĠ Ġskills Provider Observer . onNext ( expected ) ĊĠĠĠĠĠĠĠ Ġskills Provider Observer . onComplete () ĊĊĠĠĠĠĠĠĠ Ġverify ( view ). show List ( expected . skills ) ĊĠĠĠ Ġ} Ċ }