package Ġn erd . t ux mob il . fa hr plan . con gress . utils Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . JUnit 4 Ċ Ċ @ RunWith ( JUnit 4 :: class ) Ċ class ĠUrl Validator Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid With Https () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https "). isValid ()). isFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid With Https Colon Slash Slash () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https :// "). isValid ()). isFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid Without TopLevel Domain () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https :// example "). isValid ()). isFalse () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid With Domain () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https :// example . com "). isValid ()). isTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid With Path () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https :// example . com / test "). isValid ()). isTrue () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun ĠisValid With Key And Value () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertThat ( Url Validator (" https :// example . com / test / path ? key = value "). isValid ()). isTrue () ĊĠĠĠ Ġ} Ċ Ċ } Ċ