package Ġcom . battle l ancer . series guide . the tv db api Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . ro bo lectric . Ro bo lectric TestRunner Ċ Ċ @ RunWith ( Ro bo lectric TestRunner :: class ) Ċ class ĠT v db Image Tools Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġart work Url () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġart work Url Ġ= ĠT v db Image Tools . art work Url (" example . jpg ") ĊĠĠĠĠĠĠĠ Ġprintln (" Artwork ĠURL : Ġ$ art work Url ") ĊĠĠĠĠĠĠĠ ĠassertThat ( art work Url ). isNotEmpty () ĊĠĠĠĠĠĠĠ ĠassertThat ( art work Url ). endsWith (" https :// www . the tv db . com / b anners / example . jpg ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġposter Url Or Resolve () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġurl Ġ= ĠT v db Image Tools . poster Url Or Resolve ( null , Ġ 4 2 , Ġnull ) ĊĠĠĠĠĠĠĠ ĠassertThat ( url ). isNotEmpty () ĊĠĠĠĠĠĠĠ ĠassertThat ( url ). isEqualTo (" show tv db :// 4 2 ") ĊĠĠĠĠĠĠĠ Ġval Ġurl Lang Ġ= ĠT v db Image Tools . poster Url Or Resolve ( null , Ġ 4 2 , Ġ" de ") ĊĠĠĠĠĠĠĠ ĠassertThat ( url Lang ). isNotEmpty () ĊĠĠĠĠĠĠĠ ĠassertThat ( url Lang ). isEqualTo (" show tv db :// 4 2 ? language = de ") ĊĠĠĠ Ġ} Ċ } Ċ