package Ġcom . w car mon . codegen . http client Ċ Ċ import Ġorg . mock server . client . Mock Server Client Ċ import Ġorg . test containers . containers . Mock Server Container Ċ import Ġorg . test containers . utility . Docker Image Name Ċ Ċ // ĠSee Ġhttps :// www . mock - server . com / where / docker . html Ċ // ĠSee Ġhttps :// www . test containers . org / modules / mock server / Ċ // ĠSee Ġdashboard Ġat ĠĠ Ġhttp :// localhost :< port >/ mock server / dashboard Ċ Ċ const Ġval ĠMOCK _ SERVER _ IMAGE _ VERSION Ġ= Ġ" 5 . 1 1 . 2 " ĊĊ Ċ /** ĠConstruct Ġ*/ Ċ fun Ġbuild Mock Server Container ( ĊĠ Ġimage : ĠDocker Image Name Ġ= ĠMOCK _ SERVER _ IMAGE , Ċ ): ĠMock Server Container Ġ= ĊĠ ĠMock Server Container ( image ) ĊĊ Ċ /** Ċ Ġ* ĠSee Ġhttps :// www . mock - server . com / mock _ server / mock server _ clients . html # button _ client _ create _ expect ation Ċ Ġ*/ Ċ fun Ġget Mock Config ( ĊĠ Ġcontainer : ĠMock Server Container , Ċ ) Ġ= ĠMock Server Client ( ĊĠ Ġcontainer . host , ĊĠ Ġcontainer . server Port , Ċ ) ĊĊ Ċ private Ġval ĠMOCK _ SERVER _ IMAGE Ġ= ĠDocker Image Name ĊĠ Ġ. parse (" mock server / mock server ") ĊĠ Ġ. with Tag (" mock server -${ MOCK _ SERVER _ IMAGE _ VERSION }") Ċ