package Ġcom . easy . kotlin . kotlin blog Ċ Ċ import Ġcom . easy . kotlin . kotlin blog . entity . Article Ċ import Ġcom . easy . kotlin . kotlin blog . repository . Article Repository Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . test . context . junit 4 . Spring Runner Ċ Ċ @ RunWith ( Spring Runner :: class ) Ċ @ SpringBootTest Ċ class ĠKotlin Blog Application Tests Ġ{ ĊĊ ĉ @ Autowired Ċ ĉ val Ġarticle Repository : ĠArticle Repository ? Ġ= Ġnull ĊĊ ĉ @ Test Ċ ĉ fun Ġcontext Load s () Ġ{ Ċ ĉ } ĊĊ ĉ @ Test Ċ ĉ fun Ġtest Repository (){ Ċĉ ĉ article Repository ?. save ( Article ()) Ċ ĉ } Ċ Ċ } Ċ