package Ġcom . small ur . feeds . presentation . views . post . details Ċ Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġcom . n ha ar man . mockito _ kotlin . verify Ċ import Ġcom . small ur . feeds . data . model . Post Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ Ċ class ĠTest Presentation Post Details Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġpresenter Post Details : ĠPres enter Post Details ĊĠĠĠ Ġprivate Ġval Ġview : ĠContract Post Details . View Ġ= Ġmock () ĊĠĠĠ Ġprivate Ġval Ġpost Ġ= ĠPost (" test Name ", Ġ" Body ", Ġ" https :// pic sum . photos / 2 0 0 / 3 0 0 /? random ", Ġ" https :// thumb . ibb . co / fb 7 Ys J / my _ image . png ", Ġ" Today Ġ 1 : 4 5 pm ", Ġ 1 2 3 ) ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp (){ ĊĠĠĠĠĠĠĠ Ġthis . presenter Post Details Ġ= ĠPres enter Post Details ( this . view , Ġthis . post ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Start (){ ĊĠĠĠĠĠĠĠ Ġthis . presenter Post Details . start () ĊĠĠĠĠĠĠĠ Ġverify ( this . view ). show Full Post Details ( this . post ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Start Restore Data (){ ĊĠĠĠĠĠĠĠ Ġthis . presenter Post Details . restore Data () ĊĠĠĠĠĠĠĠ Ġverify ( this . view ). show Full Post Details ( this . post ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest On Try Again (){ ĊĠĠĠĠĠĠĠ Ġthis . presenter Post Details . on Try Again () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Refresh (){ ĊĠĠĠĠĠĠĠ Ġthis . presenter Post Details . refresh () ĊĠĠĠ Ġ} Ċ }