package Ġcom . gmail . f ant ast ics ky throw . messages . config Ċ Ċ import Ġcom . gmail . f ant ast ics ky throw . configuration . Local isation Ċ import Ġcom . gmail . f ant ast ics ky throw . configuration . Time Names Ċ import Ġcom . gmail . f ant ast ics ky throw . configuration . YAML File Loader Ċ import Ġio . mock k . junit 5 . Mock K Extension Ċ import Ġorg . junit . jupiter . api . Assertions Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġjava . io . File Ċ Ċ @ Extend With ( Mock K Extension :: class ) Ċ class ĠLocal isation Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġfile Ġ= ĠFile (" src / test / resources / local isation 1 . yml ") ĊĠĠĠ Ġprivate Ġval Ġfile 2 Ġ= ĠFile (" src / test / resources / local isation 2 . yml ") ĊĊĠĠĠ Ġprivate Ġfun Ġcreate Local isation () Ġ= ĠLocal isation ( YAML File Loader ( file ). yaml Configuration ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` loading Ġand Ġparsing Ġof Ġfile Ġshould Ġwork `() Ġ{ ĊĠĠĠĠĠĠĠ ĠYAML File Loader ( file ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` alternate Ġcountry Ġname , Ġcontained Ġin Ġyaml , Ġshould Ġreturn Ġcorrect Ġalternate Ġname `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġcreate Local isation (). get Alternate Name For Country (" Ger many ") ĊĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" De ut sch land ", Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` alternate Ġcountry Ġname , Ġnot Ġcontained Ġin Ġyaml , Ġshould Ġreturn Ġsame Ġvalue Ġas Ġargument `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġcreate Local isation (). get Alternate Name For Country (" Ky rg yz stan ") ĊĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals (" Ky rg yz stan ", Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Time Names , Ġshould Ġreturn Ġconfigured Ġtime Ġnames `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġcreate Local isation (). time Names ĊĊĠĠĠĠĠĠĠ Ġval Ġexpected Ġ= ĠTime Names (" ç§Ĵ ", Ġ" ç§Ĵ ", Ġ" åĪĨ ", Ġ" åĪĨ ", Ġ" æĻĤéĸĵ ", Ġ" æĻĤéĸĵ ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" æĹ¥ ", Ġ" æĹ¥ ", Ġ" ãĥ ¶ æľĪ ", Ġ" ãĥ ¶ æľĪ ", Ġ" è¦ĭ ãģŁ ãģĵãģ¨ ãģĮ ãģªãģĦ ") ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( expected , Ġresult ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Time Names , Ġmonths Ġmissing , Ġshould Ġreturn Ġdefault Ġenglish Ġnames `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= ĠLocal isation ( YAML File Loader ( file 2 ). yaml Configuration ). time Names ĊĊĠĠĠĠĠĠĠ Ġval Ġexpected Ġ= ĠTime Names . create English Time Names () ĊĠĠĠĠĠĠĠ ĠAssertions . assertEquals ( expected , Ġresult ) ĊĠĠĠ Ġ} Ċ }