package Ġcom . github . d run lin . webapp box . activity Ċ Ċ import Ġandroid . support . test . rule . Activity Test Rule Ċ import Ġandroid . support . test . runner . Android JUnit 4 Ċ import Ġorg . hamcrest . core . All Of . all Of Ċ import Ġorg . hamcrest . core . IsNot . not Ċ import Ġorg . junit . Assert . assertThat Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠFragment Activity Test Ġ{ ĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field Ġval Ġrule Ġ= ĠActivity Test Rule ( Fragment Activity :: class . java ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġobtain Activity Animation () Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( rule . activity ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( open Enter Animation , Ġall Of ( not ( 0 ), Ġnot ( android . R . anim . fade _ in ))) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( open Exit Animation , Ġall Of ( not ( 0 ), Ġnot ( android . R . anim . fade _ out ))) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( close Enter Animation , Ġall Of ( not ( 0 ), Ġnot ( android . R . anim . fade _ in ))) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( close Exit Animation , Ġall Of ( not ( 0 ), Ġnot ( android . R . anim . fade _ out ))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ