package Ġm wv dev . ber ight there . android . d agger Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . test . core . app . Application Provider Ċ import Ġorg . junit . rules . Test Watcher Ċ import Ġorg . junit . runner . Description Ċ Ċ class ĠD agger Test Application Rule Ġ: ĠTest Watcher () Ġ{ ĊĊĠĠĠ Ġlateinit Ġvar Ġcomponent : ĠTest Application Component Ġprivate Ġset ĊĊĠĠĠ Ġoverride Ġfun Ġstarting ( description : ĠDescription ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . starting ( description ) ĊĊĠĠĠĠĠĠĠ Ġval Ġapp Ġ= ĠApplication Provider . getApplicationContext < Context >() Ġas ĠTest Application ĊĠĠĠĠĠĠĠ Ġcomponent Ġ= ĠD agger Test Application Component . factory (). create ( app ) ĊĠĠĠĠĠĠĠ Ġcomponent . inject ( app ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ