package Ġcom . j dia z can o . cfg 4 k Ċ Ċ import Ġcom . j dia z can o . cfg 4 k . loaders . Property Config Loader Ċ import Ġcom . j dia z can o . cfg 4 k . providers . Default Config Provider Ċ import Ġcom . j dia z can o . cfg 4 k . providers . get Ċ import Ġcom . j dia z can o . cfg 4 k . sources . Classpath Config Source Ċ import Ġcom . w inter be . ex pe kt . should Ċ import Ġorg . jetbrains . spe k . api . Spe k Ċ import Ġorg . jetbrains . spe k . api . dsl . describe Ċ Ċ class ĠMerge Config Loader Test Ġ: ĠSpe k ({ ĊĊĠĠĠ Ġdescribe (" a Ġconfig Ġloader Ġthat Ġcan Ġbe Ġmerged ") Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfirst Config Source Ġ= ĠClass path Config Source ("/ first . properties ") ĊĠĠĠĠĠĠĠ Ġval Ġsecond Config Source Ġ= ĠClass path Config Source ("/ second . properties ") ĊĠĠĠĠĠĠĠ Ġval Ġconfig Loader One Ġ= ĠProperty Config Loader ( first Config Source ) ĊĠĠĠĠĠĠĠ Ġval Ġconfig Loader Two Ġ= ĠProperty Config Loader ( second Config Source ) ĊĠĠĠĠĠĠĠ Ġval Ġprovider Ġ= ĠDefault Config Provider ( config Loader One . merge ( config Loader Two )) ĊĊĠĠĠĠĠĠĠ Ġprovider . get < Int >(" int "). should . be . equal ( 1 ) ĊĠĠĠĠĠĠĠ Ġprovider . get < Int >(" p aco "). should . be . equal ( 2 ) ĊĠĠĠĠĠĠĠ Ġprovider . get < Int >(" pe pe "). should . be . equal ( 2 ) ĊĠĠĠĠĠĠĠ Ġprovider . get < String >(" p ico "). should . be . equal (" Test ") ĊĠĠĠ Ġ} Ċ })