package Ġcom . ep am . br n . service Ċ Ċ import Ġorg . junit . jupiter . api . assert Throws Ċ import Ġorg . junit . jupiter . params . Parameterized Test Ċ import Ġorg . junit . jupiter . params . provider . Value Source Ċ Ċ internal Ġclass ĠY an dex Speech Kit Service Test Ġ{ ĊĊĠĠĠ Ġval Ġy an dex Speech Kit Service Ġ= ĠY an dex Speech Kit Service () ĊĊĠĠĠ Ġ@ Parameterized Test ĊĠĠĠ Ġ@ Value Source ( strings Ġ= Ġ[" ru - ru ", Ġ" en - us ", Ġ" tr - tr "]) ĊĠĠĠ Ġfun Ġ` should Ġsuccess Ġpass Ġlocale Ġvalidation `( locale : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġy an dex Speech Kit Service . validate Locale ( locale ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Parameterized Test ĊĠĠĠ Ġ@ Value Source ( strings Ġ= Ġ[" r uru ", Ġ" en - en ", Ġ" tr "]) ĊĠĠĠ Ġfun Ġ` should Ġfailed Ġon Ġlocale Ġvalidation `( locale : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThrows < IllegalArgumentException > Ġ{ Ġy an dex Speech Kit Service . validate Locale ( locale ) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ