package Ġcom . j pp . mp . stub bers Ċ Ċ import Ġcom . github . tom ake hur st . wire mock . client . Wire Mock . a Response Ċ import Ġcom . github . tom ake hur st . wire mock . client . Wire Mock . get Ċ import Ġcom . github . tom ake hur st . wire mock . client . Wire Mock . stub For Ċ import Ġcom . github . tom ake hur st . wire mock . client . Wire Mock . urlPath Matching Ċ import Ġcom . j pp . mp data . api . BaseUrl Changing Interceptor Provider Ċ Ċ /** Ċ Ġ* ĠStub s Ġthe Ġmovie Ġlist Ġnow Ġplaying Ġsection Ġto Ġshow Ġthe Ġfirst Ġpage . Ċ Ġ*/ Ċ fun Ġstub Configuration Default () Ġ{ ĊĠĠĠ Ġval Ġurl Ġ= Ġ"/ 3 / configuration " ĊĠĠĠ ĠBase Url Changing Interceptor Provider . set Interceptor ( LOCAL _ HOST Ġ+ Ġurl ) ĊĠĠĠ Ġval Ġjson Body Ġ= Ġread Asset From (" configuration _ default . json ") ĊĠĠĠ Ġstub For ( get ( urlPath Matching ( url )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. willReturn ( a Response () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Status ( 2 0 0 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. with Body ( json Body ))) Ċ } Ċ