package Ġit . coding jam . github . espress o ĊĊ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . test . rule . Activity Test Rule Ċ import Ġit . coding jam . github . ui . common . Fragment Creator Ċ import Ġit . coding jam . github . ui . common . args Ċ Ċ class ĠFragment Test Rule < T >( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġgraph Id : ĠInt , ĊĠĠĠĠĠĠĠ Ġprivate Ġval ĠnodeId : ĠInt , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġbundle Creator : Ġ( T ) Ġ-> ĠBundle Ċ ) Ġ: ĠActivity Test Rule < Single Fragment Activity >( Single Fragment Activity :: class . java , Ġfalse , Ġfalse ) Ġ{ ĊĊĠĠĠ Ġfun Ġlaunch Fragment ( param : ĠT ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlaunch Activity ( null ) ĊĠĠĠĠĠĠĠ Ġactivity . set Fragment ( graph Id , ĠnodeId , Ġbundle Creator ( param )) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġ< T Ġ: ĠAny > ĠFragment Creator < T >. rule () Ġ= ĊĠĠĠĠĠĠĠ ĠFragment Test Rule < T >( graph Id , ĠnodeId ) Ġ{ Ġargs ( it ) Ġ} Ċ