package Ġby . dev . mad head . dev notifier . util čĊč Ċ import Ġorg . junit . jupiter . api . Assertions č Ċ import Ġorg . junit . jupiter . params . Parameterized Test č Ċ import Ġorg . junit . jupiter . params . provider . Method Source č Ċ import Ġorg . junit . runner . RunWith č Ċ import Ġorg . junit . runners . Parameterized č Ċ import Ġjavax . mail . Address čĊč Ċ @ RunWith ( Parameterized :: class ) č Ċ class ĠRe cipient Parser Test Ġ{ čĊčĊĠĠĠ Ġ@ Parameterized Test čĊĠĠĠ Ġ@ Method Source (" builder Address Source ") čĊĠĠĠ Ġfun ĠisValid Address ( builder Address : ĠString , ĠisValid Builder Address : ĠBoolean ) Ġ{ čĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( isValid Builder Address , Ġby . dev . mad head . dev notifier . util . isValid Address ( builder Address )) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ@ Parameterized Test čĊĠĠĠ Ġ@ Method Source (" addresses Source ") čĊĠĠĠ Ġfun ĠisValid Addresses ( default Recipients : ĠString , ĠisValid Default Recipients Addresses : ĠBoolean ) Ġ{ čĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( isValid Default Recipients Addresses , Ġby . dev . mad head . dev notifier . util . isValid Addresses ( default Recipients )) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġ@ Parameterized Test čĊĠĠĠ Ġ@ Method Source (" builder Address Source ") čĊĠĠĠ Ġfun Ġadd String As Address ( builder Address : ĠString , ĠisValid Builder Address : ĠBoolean ) Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġaddresses Set Ġ= Ġmutable Set Of < Address >() čĊĠĠĠĠĠĠĠ Ġby . dev . mad head . dev notifier . util . add String As Address ( addresses Set , Ġbuilder Address ) čĊĠĠĠĠĠĠĠ Ġif Ġ( isValid Builder Address ) ĠAssertions . assertEquals ( 1 , Ġaddresses Set . size ) čĊĠĠĠĠĠĠĠ Ġelse ĠAssertions . assertEquals ( 0 , Ġaddresses Set . size ) čĊĠĠĠ Ġ} čĊčĊĠĠĠ Ġcompanion Ġobject Ġ{ čĊĠĠĠĠĠĠĠ Ġ@ Jvm Static čĊĠĠĠĠĠĠĠ Ġfun Ġbuilder Address Source () Ġ= ĠlistOf ( čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" address @ email . com ", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" address @ email . by ", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" address ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ("@ gmail ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" email . com ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ("@ ", Ġfalse ) čĊĠĠĠĠĠĠĠ Ġ) čĊčĊĠĠĠĠĠĠĠ Ġ@ Jvm Static čĊĠĠĠĠĠĠĠ Ġfun Ġaddresses Source () Ġ= ĠlistOf ( čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first @ email . com , second @ email . com , third @ email . com ", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first @ email . com ; second @ email . com ; third @ email . com ", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first @ email . com Ġsecond @ email . com Ġthird @ email . com ", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first @ email . com Ġse con de mail . com Ġthird @ email . com ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first @ email . com Ġsecond @ email . com Ġthird @. com ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" first Ġsecond @ email . com Ġthird @ email . com ", Ġfalse ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf ("", Ġtrue ), čĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠarrayOf (" ĠĠĠ Ġ", Ġtrue ) čĊĠĠĠĠĠĠĠ Ġ) čĊĠĠĠ Ġ} čĊč Ċ }