package Ġcom . nat ura . android . sample . test Ċ Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . rule . Activity Test Rule Ċ import Ġcom . nat ura . android . sample . R Ċ import Ġcom . nat ura . android . sample . components . Selection Control Activity Ċ import Ġorg . junit . Ignore Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ @ Ignore Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠSelection Control Activity Test Ġ: ĠScreen Shot Activity TestBase () Ġ{ ĊĠĠĠ Ġ@ get : Rule ĊĠĠĠ Ġvar Ġactivity Test Rule Ġ= ĠActivity Test Rule ( Selection Control Activity :: class . java , Ġfalse , Ġfalse ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest _ Snapshot _ With Controls () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġactivity Ġ= Ġactivity Test Rule . launch Activity ( null ) ĊĊĠĠĠĠĠĠĠ Ġcheck Screenshot ( activity , Ġ" no _ selection ") ĊĊĠĠĠĠĠĠĠ Ġperform Click ( R . id . radio Primary ) ĊĠĠĠĠĠĠĠ Ġperform Click ( R . id . checkbox Primary ) ĊĠĠĠĠĠĠĠ Ġcheck Screenshot ( activity , Ġ" radio _ and _ checkbox _ primary _ on ") ĊĊĠĠĠĠĠĠĠ Ġperform Click ( R . id . radio Secondary ) ĊĠĠĠĠĠĠĠ Ġperform Click ( R . id . checkbox Secondary ) ĊĠĠĠĠĠĠĠ Ġcheck Screenshot ( activity , Ġ" radio _ and _ checkbox _ secondary _ on ") ĊĠĠĠ Ġ} Ċ } Ċ