package Ġcom . github . ash ut osh g ng wr . no ice . fragment Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . fragment . app . testing . Fragment Scenario Ċ import Ġandroidx . fragment . app . testing . launch Fragment In Container Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . action . View Actions . click Ċ import Ġandroidx . test . espress o . action . View Actions . scrollTo Ċ import Ġandroidx . test . espress o . intent . Intent s Ċ import Ġandroidx . test . espress o . intent . matcher . Intent Matchers Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Id Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġcom . github . ash ut osh g ng wr . no ice . R Ċ import Ġcom . github . ash ut osh g ng wr . no ice . Retry Test Rule Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠSupport Development Fragment Test Ġ{ ĊĊĠ Ġ@ Rule ĊĠ Ġ@ Jvm Field ĊĠ Ġval Ġretry Test Rule Ġ= ĠRetry Test Rule ( 5 ) ĊĊĠ Ġprivate Ġlateinit Ġvar Ġfragment Scenario : ĠFragment Scenario < Support Development Fragment > ĊĊĠ Ġ@ Before ĊĠ Ġfun Ġsetup () Ġ{ ĊĠĠĠ Ġfragment Scenario Ġ= Ġlaunch Fragment In Container ( null , ĠR . style . Theme _ App ) ĊĠĠĠ ĠInt ents . init () ĊĠ Ġ} ĊĊĠ Ġ@ After ĊĠ Ġfun Ġteardown () Ġ{ ĊĠĠĠ ĠInt ents . release () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Share With Friends Button () Ġ{ ĊĠĠĠ Ġon View ( with Id ( R . id . button _ share )). perform ( scrollTo (), Ġclick ()) ĊĊĠĠĠ ĠInt ents . int ended ( ĊĠĠĠĠĠ ĠIntent Matchers . filter Equals ( ĊĠĠĠĠĠĠĠ ĠIntent ( Intent . ACTION _ CH OO SER ) ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) ĊĠ Ġ} Ċ } Ċ