package Ġcom . j ames re ub en gr uta . project api . presentation . activities . login _ profile Ċ Ċ import Ġandroid . test . mock . Mock Application Ċ import Ġandroidx . test . espress o . Esp ress o Ċ import Ġandroidx . test . espress o . action . View Actions Ċ import Ġandroidx . test . espress o . assertion . View Assertions Ċ import Ġandroidx . test . espress o . matcher . View Matchers Ċ import Ġandroidx . test . rule . Activity Test Rule Ċ import Ġcom . j ames re ub en gr uta . project api . R Ċ import Ġcom . j ames re ub en gr uta . project api . garbage . Broad caster Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test ĊĊ Ċ class ĠLogin Profile Test Ġ{ ĊĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field ĊĠĠĠ Ġvar Ġrule Ġ: ĠActivity Test Rule < Login Profile > Ġ= ĠActivity Test Rule < Login Profile >( Login Profile :: class . java ) ĊĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġrule . activity . support FragmentManager . beginTransaction () ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest EditText Visibility (){ ĊĊĠĠĠĠĠĠĠ Ġ// edit text Ġusername ĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . et _ username )). check ( View Assertions . matches ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . is Displayed ())) ĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . et _ username )). perform ( View Actions . clear Text (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Actions . type Text (" The Quick B rown F oxy Dog s ")) ĊĠĠĠĠĠĠĠ Ġ// close ĊĠĠĠĠĠĠĠ ĠE sp ress o . close Soft Keyboard () ĊĠĠĠĠĠĠĠ Ġ// edit text Ġpassword ĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . et _ password )). check ( View Assertions . matches ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . is Displayed ())) ĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . et _ password )). perform ( View Actions . clear Text (), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Actions . type Text (" The Quick B rown F oxy Dog s ")) ĊĠĠĠĠĠĠĠ Ġ// close ĊĠĠĠĠĠĠĠ ĠE sp ress o . close Soft Keyboard () ĊĠĠĠĠĠĠĠ Ġ// button ĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . bt _ login )). perform ( View Actions . click ()) ĊĊĠĠĠĠĠĠĠ ĠE sp ress o . on View ( View Matchers . with Id ( R . id . rv _ list )). check ( View Assertions . matches ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . is Displayed ())) ĊĊĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After ĊĠĠĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġ} Ċ }