package Ġwatch . dependency Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Test Ċ Ċ class ĠComposite Notifier Test Ġ{ Ċ ĉ @ Test Ġfun Ġnotify Empty () Ġ= Ġrun Blocking Ġ{ Ċĉ ĉ val Ġnot ifier Ġ= ĠlistOf < Notifier >(). flatten () ĊĊĉ ĉ notifier . notify ( Maven Coordinate (" com . example ", Ġ" example "), Ġ" 1 . 0 . 0 ") ĊĊĉ ĉ // ĠNothing Ġto Ġtest ! Ċ ĉ } ĊĊ ĉ @ Test Ġfun Ġnotify Single () Ġ= Ġrun Blocking < Unit > Ġ{ Ċĉ ĉ val Ġrecording Ġ= ĠRecord ing Notifier () Ċĉ ĉ val Ġnot ifier Ġ= ĠlistOf ( recording ). flatten () ĊĊĉ ĉ notifier . notify ( Maven Coordinate (" com . example ", Ġ" example "), Ġ" 1 . 0 . 0 ") ĊĊĉ ĉ assertThat ( recording . notifications ). contains Exactly ( Ċĉĉ ĉ " com . example : example : 1 . 0 . 0 ", Ċĉ ĉ ) Ċ ĉ } ĊĊ ĉ @ Test Ġfun Ġnotify Multiple () Ġ= Ġrun Blocking < Unit > Ġ{ Ċĉ ĉ val Ġrecording 1 Ġ= ĠRecord ing Notifier () Ċĉ ĉ val Ġrecording 2 Ġ= ĠRecord ing Notifier () Ċĉ ĉ val Ġnot ifier Ġ= ĠlistOf ( recording 1 , Ġrecording 2 ). flatten () ĊĊĉ ĉ notifier . notify ( Maven Coordinate (" com . example ", Ġ" example "), Ġ" 1 . 0 . 0 ") ĊĊĉ ĉ assertThat ( recording 1 . notifications ). contains Exactly ( Ċĉĉ ĉ " com . example : example : 1 . 0 . 0 ", Ċĉ ĉ ) Ċĉ ĉ assertThat ( recording 2 . notifications ). contains Exactly ( Ċĉĉ ĉ " com . example : example : 1 . 0 . 0 ", Ċĉ ĉ ) Ċ ĉ } Ċ } Ċ