package Ġinit ish bh att . com . espress os ample . base Robot Ċ Ċ import Ġandroid . support . annotation . Id Res Ċ import Ġandroid . support . test . espress o . Esp ress o . on View Ċ import Ġandroid . support . test . espress o . assertion . View Assertions . matches Ċ import Ġandroid . support . test . espress o . matcher . View Matchers Ċ import Ġorg . hamcrest . Core Matchers . not Ċ Ċ /** Ċ Ġ* Ġ@ author Ġn it ish bh att Ċ Ġ*/ Ċ @ Dsl Marker Ċ annotation Ġclass ĠAssert Marker Ċ Ċ @ Assert Marker Ċ interface ĠAssert Ċ Ċ open Ġclass ĠBase Assert Ġ: ĠAssert Ġ{ ĊĊĠĠĠ Ġfun Ġis Enabled (@ Id Res Ġres Id : ĠInt ) Ġ= Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( res Id )). check ( matches ( View Matchers . isEnabled ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Disabled (@ Id Res Ġres Id : ĠInt ) Ġ= Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( res Id )). check ( matches ( not ( View Matchers . isEnabled ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Displayed (@ Id Res Ġres Id : ĠInt ) Ġ= Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( res Id )). check ( matches ( View Matchers . is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġmatch Text (@ Id Res Ġres Id : ĠInt , Ġtext : ĠString ) Ġ= Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( View Matchers . with Id ( res Id )). check ( matches ( View Matchers . with Text ( text ))) ĊĠĠĠ Ġ} Ċ }