package Ġcom . m re ig osa . mar vel app . presentation . features . character list Ċ Ċ import Ġcom . ade vint a . android . bar ista . assertion . Bar ista Visibility Assertions . assert Displayed Ċ import Ġcom . ade vint a . android . bar ista . assertion . Bar ista Visibility Assertions . assertNot Displayed Ċ import Ġcom . ade vint a . android . bar ista . interaction . Bar ista List Interactions . click ListItem Ċ import Ġcom . m re ig osa . mar vel app . R Ċ import Ġcom . m re ig osa . mar vel app . utils . Esp ress o TestUtils Ċ import Ġcom . m re ig osa . mar vel app . utils . Esp ress o TestUtils . getText Ċ Ċ class ĠMar vel Character List Robot Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġin fix Ġfun Ġcharacter List ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġfunc : ĠMar vel Character List Robot . () Ġ-> ĠUnit ĊĠĠĠĠĠĠĠ Ġ) Ġ= ĠMar vel Character List Robot (). apply Ġ{ Ġfunc () Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġscreen Is Shown () Ġ{ ĊĠĠĠĠĠĠĠ Ġassert Displayed ( R . id . character _ list ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġselect Character ( position : ĠInt Ġ= Ġ 0 ) Ġ{ ĊĠĠĠĠĠĠĠ Ġclick ListItem ( R . id . character _ list , Ġposition ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġerror Is Shown (){ ĊĠĠĠĠĠĠĠ Ġassert Displayed ( getText ( R . string . something _ w ent _ wrong )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġempty View Shown (){ ĊĠĠĠĠĠĠĠ Ġassert Displayed ( R . id . empty _ data _ view , ĠgetText ( R . string . no _ data _ retrie ved )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġloading Is Hidden (){ ĊĠĠĠĠĠĠĠ Ġassert Not Displayed ( R . id . progress _ bar ) ĊĠĠĠ Ġ} Ċ }