package Ġorg . opp ia . app . splash Ċ Ċ import Ġandroidx . test . espress o . intent . Intent s Ċ import Ġandroidx . test . espress o . intent . Intent s . int ended Ċ import Ġandroidx . test . espress o . intent . matcher . Intent Matchers . has Component Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . rule . Activity Test Rule Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . opp ia . app . profile . Profile Activity Ċ Ċ /** Ċ Ġ* ĠTests Ġfor Ġ[ Splash Activity ]. ĠFor Ġcontext Ġon Ġthe Ġactivity Ġtest Ġrule Ġsetup Ġsee : Ċ Ġ* Ġhttps :// jab know s nothing . wordpress . com / 2 0 1 5 / 1 1 / 0 5 / activity test rule - espress os - test - lifecycle /. Ċ Ġ*/ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠSpl ash Activity Test Ġ{ ĊĊĠ Ġ// ĠThe Ġinitial Touch Mode Ġenables Ġthe Ġactivity Ġto Ġbe Ġlaunched Ġin Ġtouch Ġmode . ĠThe Ġlaunch Activity Ġis ĊĠ Ġ// Ġdisabled Ġto Ġlaunch ĠActivity Ġexplicitly Ġwithin Ġeach Ġtest Ġcase . ĊĠ Ġ@ get : Rule ĊĠ Ġvar Ġactivity Test Rule : ĠActivity Test Rule < Splash Activity > Ġ= ĠActivity Test Rule ( ĊĠĠĠ ĠSpl ash Activity :: class . java , Ġ/* Ġinitial Touch Mode = Ġ*/ Ġtrue , Ġ/* Ġlaunch Activity = Ġ*/ Ġfalse ĊĠ Ġ) ĊĊĠ Ġ@ Before ĊĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠ ĠInt ents . init () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Splash Activity _ initial Open _ routes To Home Activity () Ġ{ ĊĠĠĠ Ġactivity Test Rule . launch Activity ( null ) ĊĠĠĠ Ġintended ( has Component ( Profile Activity :: class . java . name )) ĊĠ Ġ} ĊĊĠ Ġ@ After ĊĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ ĠInt ents . release () ĊĠ Ġ} Ċ } Ċ