package Ġcom . w car mon . codegen . database Ċ Ċ import Ġorg . springframework . jdbc . core . Jdbc Template Ċ import Ġorg . springframework . jdbc . datasource . Driver Manager DataSource Ċ import Ġorg . test containers . containers . Jdbc Database Container ĊĊ Ċ fun Ġbuild DataSource ( container : ĠJdbc Database Container < *> ): ĠDriver Manager DataSource Ġ= ĊĠ ĠDriver Manager DataSource ( ĊĠĠĠ Ġcontainer . jdbc Url , ĊĠĠĠ Ġcontainer . username , ĊĠĠĠ Ġcontainer . password ĊĠ Ġ) Ċ Ċ fun Ġbuild J DB CT emplate ( container : ĠJdbc Database Container < *> ): ĠJdbc Template Ġ= ĊĠ ĠJdbc Template ( build DataSource ( container )) Ċ