package Ġno . nav . f amil ie . ba . sak . config Ċ Ċ import Ġio . mock k . every Ċ import Ġio . mock k . mock k Ċ import Ġno . nav . f amil ie . ba . sak . common . LocalDate Service Ċ import Ġorg . springframework . boot . test . context . Test Configuration Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Primary Ċ import Ġorg . springframework . context . annotation . Profile Ċ import Ġjava . time . LocalDate Ċ Ċ @ Test Configuration Ċ class ĠLocalDate Service Test Config Ġ{ ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Profile (" mock - local date - service ") ĊĠĠĠ Ġ@ Primary ĊĠĠĠ Ġfun Ġmock LocalDate Service (): ĠLocalDate Service Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmock LocalDate Service Ġ= Ġmock k < LocalDate Service >() ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġmock LocalDate Service . now () Ġ} Ġreturns ĠLocalDate . now () ĊĊĠĠĠĠĠĠĠ Ġreturn Ġmock LocalDate Service ĊĠĠĠ Ġ} Ċ } Ċ