package Ġcom . av ito . android . ui . test Ċ Ċ import Ġcom . av ito . android . test . app . core . screen Rule Ċ import Ġcom . av ito . android . test . app . second . AppBar Activity Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ Ċ class ĠApp Bar Test Ġ{ ĊĊĠĠĠ Ġ@ get : Rule ĊĠĠĠ Ġval Ġrule Ġ= Ġscreen Rule < AppBar Activity >() ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġcollapse _ coll ap ses Views () Ġ{ ĊĠĠĠĠĠĠĠ Ġrule . launch Activity ( null ) ĊĊĠĠĠĠĠĠĠ Ġrule . activity . set Expanded ( true ) ĊĊĠĠĠĠĠĠĠ ĠScreen . app Bar Screen . app Bar . actions . collapse () ĊĠĠĠĠĠĠĠ ĠScreen . app Bar Screen . test View . checks . isNot Comp let ely Displayed () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġexpand _ shows Views () Ġ{ ĊĠĠĠĠĠĠĠ Ġrule . launch Activity ( null ) ĊĊĠĠĠĠĠĠĠ Ġrule . activity . set Expanded ( false ) ĊĊĠĠĠĠĠĠĠ ĠScreen . app Bar Screen . app Bar . actions . expand () ĊĠĠĠĠĠĠĠ ĠScreen . app Bar Screen . test View . checks . is Comp let ely Displayed () ĊĠĠĠ Ġ} Ċ } Ċ