package Ġcom . h ho ang . scr ump oker Ċ Ċ import Ġandroid . view . Gravity Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . contrib . Drawer Actions Ċ import Ġandroidx . test . espress o . contrib . Drawer Matchers . is Closed Ċ import Ġandroidx . test . espress o . contrib . Navigation View Actions Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Id Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . platform . app . Instrumentation Registry Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ internal Ġclass ĠGeneral IT : ĠTest Base () Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġclick On Menu () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . drawer _ layout )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Closed ( Gravity . LEFT ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( Drawer Actions . open ()) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . nav _ view )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( Navigation View Actions . navigate To ( R . id . mi ScrollView )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġuse AppContext () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġapp Context Ġ= ĠInstrument ation Registry . get Instrumentation (). target Context ĊĠĠĠĠĠĠĠ ĠassertEquals (" com . h ho ang . scr ump oker ", Ġapp Context . packageName ) ĊĠĠĠ Ġ} Ċ } Ċ