package Ġreactive circ us . flow binding . material Ċ Ċ import Ġandroidx . test . filters . Large Test Ċ import Ġandroidx . test . internal . runner . junit 4 . statement . Ui Thread Statement . run On Ui Thread Ċ import Ġcom . google . android . material . chip . Chip Ċ import Ġorg . am sh ove . k lu ent . should Equal Ċ import Ġorg . junit . Test Ċ import Ġreactive circ us . flow binding . material . fixtures . Material Fragment 2 Ċ import Ġreactive circ us . flow binding . material . test . R Ċ import Ġreactive circ us . flow binding . testing . Flow Recorder Ċ import Ġreactive circ us . flow binding . testing . launch Test Ċ import Ġreactive circ us . flow binding . testing . record With Ċ Ċ @ Large Test Ċ class ĠCh ip Close Icon Clicked Flow Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġchip Close Icon Click s () Ġ{ ĊĠĠĠĠĠĠĠ Ġlaunch Test < Material Fragment 2 > Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġrecorder Ġ= ĠFlow Recorder < Unit >( test Scope ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġchip 1 Ġ= Ġget ViewById < Chip >( R . id . chip 1 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġchip 1 . close Icon Click s (). record With ( recorder ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecorder . assert No More Values () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġrun On Ui Thread Ġ{ Ġchip 1 . perform Close Icon Click () Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecorder . take Value () Ġshould Equal ĠUnit ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecorder . assert No More Values () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġcancel Test Scope () ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġchip 2 Ġ= Ġget ViewById < Chip >( R . id . chip 2 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġchip 2 . close Icon Click s (). record With ( recorder ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrun On Ui Thread Ġ{ Ġchip 2 . perform Close Icon Click () Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrecorder . assert No More Values () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ