package Ġreactive circ us . blueprint . testing . assertion Ċ Ċ import Ġandroidx . test . espress o . Esp ress o Ċ import Ġandroidx . test . espress o . assertion . View Assertions Ċ import Ġandroidx . test . espress o . matcher . View Matchers Ċ import Ġcom . google . android . material . R Ċ import Ġorg . hamcrest . Core Matchers Ċ import Ġreactive circ us . blueprint . testing . Robot Assertions Ċ Ċ /** Ċ Ġ* ĠCheck Ġif Ġa Ġsn ackbar Ġwith Ġ[ text ] Ġas Ġmessage Ġis Ġdisplayed . Ċ Ġ*/ Ċ public Ġfun ĠRobot Assertions . sn ackBar Displayed ( text : ĠString ) Ġ{ ĊĠĠĠ ĠE sp ress o . on View ( ĊĠĠĠĠĠĠĠ ĠCore Matchers . all Of ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . with Id ( R . id . sn ackbar _ text ), ĊĠĠĠĠĠĠĠĠĠĠĠ ĠView Matchers . with Text ( text ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ. check ( View Assertions . matches ( View Matchers . is Displayed ())) Ċ } Ċ