package Ġco . om ise . android . ui Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . test . core . app . Activity Scenario Ċ import Ġandroidx . test . core . app . Application Provider Ċ import Ġandroidx . test . espress o . intent . rule . Intent s Test Rule Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠPayment Creator Activity Exception Test Ġ{ ĊĊĠĠĠ Ġ@ get : Rule ĊĠĠĠ Ġval Ġintent Rule Ġ= ĠInt ents Test Rule < Test Fragment Activity >( Test Fragment Activity :: class . java ) ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġscenario : ĠActivity Scenario < Payment Creator Activity > ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠIllegalArgumentException :: class ) ĊĠĠĠ Ġfun Ġinitial Activity _ miss Extras Intent () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġno Extras Intent Ġ= ĠIntent ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠApplication Provider . getApplicationContext (), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPayment Creator Activity :: class . java ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġscenario Ġ= ĠActivity Scenario . launch ( no Extras Intent ) ĊĠĠĠ Ġ} Ċ } Ċ