package Ġcom . v ga id ar ji . dependencies . overview Ċ Ċ import Ġcom . n ha ar man . mockito _ kotlin . any Ċ import Ġcom . n ha ar man . mockito _ kotlin . spy Ċ import Ġcom . n ha ar man . mockito _ kotlin . wh enever Ċ import Ġorg . gradle . api . Project Ċ import Ġorg . gradle . api . artifacts . Configuration Ċ import Ġorg . gradle . api . artifacts . Configuration Container Ċ import Ġorg . gradle . api . artifacts . Resolved Configuration Ċ import Ġorg . gradle . test fixtures . Project Builder Ċ Ċ open Ġclass ĠBaseTest Ġ{ ĊĠĠĠ Ġprotected Ġfun Ġproject With Artifacts ( var arg Ġartifacts : ĠTest Artifact ): ĠProject Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject : ĠProject Ġ= Ġspy ( Project Builder . builder (). build ()) ĊĠĠĠĠĠĠĠ Ġval Ġconfiguration Container Ġ= Ġcom . n ha ar man . mockito _ kotlin . mock < Configuration Container >() ĊĠĠĠĠĠĠĠ Ġval Ġconfiguration Ġ= Ġcom . n ha ar man . mockito _ kotlin . mock < Configuration >() ĊĠĠĠĠĠĠĠ Ġval Ġresolved Configuration Ġ= Ġcom . n ha ar man . mockito _ kotlin . mock < Resolved Configuration >() ĊĠĠĠĠĠĠĠ Ġval Ġresolved Artifacts Ġ= Ġartifacts . map Ġ{ Ġit . resolved Artifact Ġ}. toSet () ĊĠĠĠĠĠĠĠ Ġwhenever ( resolved Configuration . resolved Artifacts ). thenReturn ( resolved Artifacts ) ĊĠĠĠĠĠĠĠ Ġwhenever ( configuration . resolved Configuration ). thenReturn ( resolved Configuration ) ĊĠĠĠĠĠĠĠ Ġwhenever ( configuration Container . get ByName ( any ())). thenReturn ( configuration ) ĊĠĠĠĠĠĠĠ Ġwhenever ( project . configurations ). thenReturn ( configuration Container ) ĊĠĠĠĠĠĠĠ Ġreturn Ġproject ĊĠĠĠ Ġ} Ċ }