package Ġdev . ar unk umar . sc abb ard . gradle . common Ċ Ċ import Ġdev . ar unk umar . sc abb ard . gradle . Default Sc abb ard Spec Ċ import Ġorg . gradle . api . Project Ċ import Ġorg . gradle . test fixtures . Project Builder Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Before Ċ Ċ abstract Ġclass ĠProject Test Ġ{ ĊĠ Ġlateinit Ġvar Ġproject : ĠProject ĊĊĠ Ġinternal Ġfun Ġprepare Sc abb ard Extension ( block : ĠDefault Sc abb ard Spec . () Ġ-> ĠUnit Ġ= Ġ{} ): ĠDefault Sc abb ard Spec Ġ{ ĊĠĠĠ Ġreturn ĠDefault Sc abb ard Spec ( project ). apply ( block ) ĊĠ Ġ} ĊĊĠ Ġ@ Before ĊĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġproject Ġ= ĠProject Builder . builder (). build () ĊĠ Ġ} ĊĊĠ Ġ@ After ĊĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġproject . plugins . remove If Ġ{ Ġtrue Ġ} ĊĠ Ġ} Ċ }