package Ġorg . un bro k end ome . gradle . plugins . x jc . testutil . assertions Ċ Ċ import Ġassert k . Assert Ċ import Ġassert k . assertions . isEqualTo Ċ import Ġassert k . assertions . isIn Ċ import Ġassert k . assertions . support . expected Ċ import Ġassert k . assertions . support . show Ċ import Ġorg . gradle . test kit . runner . Build Result Ċ import Ġorg . gradle . test kit . runner . Build Task Ċ import Ġorg . gradle . test kit . runner . Task Outcome ĊĊ Ċ fun ĠAssert < Build Result >. task ( task Path : ĠString ) Ġ= ĊĠĠĠ Ġtransform ( name Ġ= Ġ" task Ġ$ task Path ") Ġ{ Ġactual Ġ-> ĊĠĠĠĠĠĠĠ Ġactual . task ( task Path ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġexpected (" to Ġinclude Ġtask Ġ'$ task Path ', Ġbut Ġwas : Ġ${ show ( actual . tasks . map Ġ{ Ġit . path Ġ}) }") ĊĠĠĠ Ġ} ĊĊ Ċ val ĠAssert < Build Task >. outcome : ĠAssert < Task Outcome > ĊĠĠĠ Ġget () Ġ= Ġtransform ( name Ġ= Ġ"$ name Ġoutcome ") Ġ{ Ġactual Ġ-> ĊĠĠĠĠĠĠĠ Ġactual . outcome ĊĠĠĠ Ġ} ĊĊ Ċ fun ĠAssert < Build Task >. has Outcome ( expected : ĠTask Outcome ) Ġ= ĊĠĠĠ Ġoutcome . isEqualTo ( expected ) ĊĊ Ċ fun ĠAssert < Build Task >. has Outcome ( var arg Ġexpected : ĠTask Outcome ) Ġ= ĊĠĠĠ Ġoutcome . isIn (* expected ) ĊĊ Ċ fun ĠAssert < Build Task >. is Success () Ġ= ĊĠĠĠ Ġhas Outcome ( Task Outcome . SUCCESS ) ĊĊ Ċ fun ĠAssert < Build Task >. is Up ToDate () Ġ= ĊĠĠĠ Ġhas Outcome ( Task Outcome . UP _ TO _ DATE ) ĊĊ Ċ fun ĠAssert < Build Task >. is Skipped () Ġ= ĊĠĠĠ Ġhas Outcome ( Task Outcome . SKIP PED ) Ċ