package Ġac r . browser . lightning . favicon Ċ Ċ import Ġac r . browser . lightning . Build Config Ċ import Ġac r . browser . lightning . SDK _ VERSION Ċ import Ġac r . browser . lightning . Test Application Ċ import Ġandroidx . core . net . to Uri Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . ro bo lectric . Ro bo lectric TestRunner Ċ import Ġorg . ro bo lectric . annotation . Config Ċ Ċ /** Ċ Ġ* ĠUnit Ġtests Ġfor ĠUri Extensions . kt Ċ Ġ*/ Ċ @ RunWith ( Ro bo lectric TestRunner :: class ) Ċ @ Config ( constants Ġ= ĠBuild Config :: class , Ġapplication Ġ= ĠTest Application :: class , Ġsdk Ġ= Ġ[ SDK _ VERSION ]) Ċ class ĠUri Extensions Kt Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` safe Uri Ġreturns Ġnull Ġfor Ġempty Ġurl `() Ġ= ĠassertThat (" ". to Uri (). to Valid Uri ()). isNull () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` safe Uri Ġreturns Ġnull Ġfor Ġurl Ġwithout Ġscheme `() Ġ= ĠassertThat (" test . com ". to Uri (). to Valid Uri ()). isNull () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` safe Uri Ġreturns Ġnull Ġfor Ġurl Ġwithout Ġhost `() Ġ= ĠassertThat (" http :// ". to Uri (). to Valid Uri ()). isNull () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` safe Uri Ġreturns Ġvalid ĠUri Ġfor Ġfull Ġurl `() Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat (" http :// test . com ". to Uri (). to Valid Uri ()). isEqualTo ( Valid Uri (" http ", Ġ" test . com ")) ĊĠĠĠ Ġ} Ċ } Ċ