package Ġpro . bi lo us . codegen . merge Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġkotlin . test . assertEquals Ċ Ċ class ĠFile Repo Kt Content Test Ġ{ ĊĊ ĉ @ Test Ċ ĉ fun Ġ` should Ġpass Ġtest Ġand Ġmerge Ġcontent `() Ġ{ Ċĉ ĉ val Ġfile Merge Ġ= ĠFile Merge () Ċĉ ĉ val Ġfake FilePath Ġ= Ġ"/ path / to / file / User Application . kt " Ċĉ ĉ val Ġresult Ġ= Ġfile Merge . merge FileContent ( test Kt Existing , Ġtest Kt New , Ġfake FilePath ) ĊĊĉ ĉ assertEquals ( expected Kt Result , Ġresult ) Ċ ĉ } ĊĊ ĉ private Ġval Ġtest Kt Existing Ġ= Ġ""" Ċ ĉ package Ġcom . flo . r ater . account . repository ĊĊ ĉ import Ġcom . flo . r ater . account . domain . Customer Account Ċ ĉ import Ġcom . flo . r ater . repository . Common Repository Ċ ĉ import Ġorg . springframework . data . domain . Page able Ċ ĉ import Ġorg . springframework . data . jpa . repository . Query Ċ ĉ import Ġorg . springframework . stereotype . Repository Ċ ĉ import Ġjava . time . LocalDate Ċ ĉ import Ġjava . util .* ĊĊ ĉ @ javax . annotation . Generated ( value Ġ= Ġ[" org . open ap it ools . codegen . Code Code gen "]) ĊĊ ĉ @ Repository Ċ ĉ // codegen : merge Ċ ĉ interface ĠCustomer Accounts Repository Ġ: ĠCommon Repository < Customer Account > Ġ{ ĊĊĉ ĉ fun ĠfindBy Parent Id ( parentId : ĠUUID ): ĠOptional < Customer Account > ĊĊĉ ĉ @ Query ("" ${ '" '} Ċĉĉ ĉ select Ġca Ġfrom ĠCustomer Account Ġca Ċĉĉĉ ĉ where Ġca . billing Cycle Period Type Ġis Ġnot Ġnull Ġand Ċĉĉĉĉ ĉ ca . is Deleted Ġ= Ġfalse Ġand Ġca . next Billing Renew al Ġ<= Ġ: date Ċĉ ĉ "" ${ '" '}) Ċĉ ĉ fun Ġget For Billing Cycle ( date : ĠLocalDate , Ġpage able : ĠPage able ): ĠList < Customer Account > ĊĊĉ ĉ @ Query (" SELECT Ġca . id ĠFROM ĠCustomer Account Ġca ") Ċĉ ĉ fun ĠfindAll Id (): ĠIterable < UUID > Ċ ĉ } ĊĊ ĉ """ ĊĊ ĉ private Ġval Ġtest Kt New Ġ= Ġ""" Ċ ĉ package Ġcom . flo . r ater . account . repository ĊĊ ĉ import Ġcom . flo . r ater . account . domain . Customer Account Ċ ĉ import Ġcom . flo . r ater . repository . Common Repository Ċ ĉ import Ġorg . springframework . stereotype . Repository Ċ ĉ import Ġjava . util .* ĊĊ ĉ @ javax . annotation . Generated ( value Ġ= Ġ[" org . open ap it ools . codegen . Code Code gen "]) ĊĊ ĉ @ Repository Ċ ĉ interface ĠCustomer Accounts Repository Ġ: ĠCommon Repository < Customer Account > ĊĊ ĉ """ ĊĊ ĉ private Ġval Ġexpected Kt Result Ġ= Ġ""" Ċ ĉ package Ġcom . flo . r ater . account . repository ĊĊ ĉ import Ġcom . flo . r ater . account . domain . Customer Account Ċ ĉ import Ġcom . flo . r ater . repository . Common Repository Ċ ĉ import Ġorg . springframework . stereotype . Repository Ċ ĉ import Ġjava . util .* ĊĊ ĉ @ javax . annotation . Generated ( value Ġ= Ġ[" org . open ap it ools . codegen . Code Code gen "]) ĊĊ ĉ @ Repository Ċ ĉ // codegen : merge Ċ ĉ interface ĠCustomer Accounts Repository Ġ: ĠCommon Repository < Customer Account > Ġ{ ĊĊĉ ĉ fun ĠfindBy Parent Id ( parentId : ĠUUID ): ĠOptional < Customer Account > ĊĊĉ ĉ @ Query ("" ${ '" '} Ċĉĉ ĉ select Ġca Ġfrom ĠCustomer Account Ġca Ċĉĉĉ ĉ where Ġca . billing Cycle Period Type Ġis Ġnot Ġnull Ġand Ċĉĉĉĉ ĉ ca . is Deleted Ġ= Ġfalse Ġand Ġca . next Billing Renew al Ġ<= Ġ: date Ċĉ ĉ "" ${ '" '}) Ċĉ ĉ fun Ġget For Billing Cycle ( date : ĠLocalDate , Ġpage able : ĠPage able ): ĠList < Customer Account > ĊĊĉ ĉ @ Query (" SELECT Ġca . id ĠFROM ĠCustomer Account Ġca ") Ċĉ ĉ fun ĠfindAll Id (): ĠIterable < UUID > Ċ ĉ } ĊĊ ĉ """ Ċ } Ċ