package Ġinfo . ad avis . quality checks . tasks Ċ Ċ import Ġinfo . ad avis . quality checks . Quality Checks Extension Ċ import Ġinfo . ad avis . quality checks . Quality Checks Plugin Ċ import Ġorg . gradle . test fixtures . Project Builder Ċ import Ġorg . junit . Assert .* Ċ import Ġorg . junit . Test Ċ import Ġjava . io . File Ċ Ċ class ĠCheck style Task Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` should Ġcreate Ġcheck style Ġtask `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= ĠProject Builder . builder (). build () ĊĊĠĠĠĠĠĠĠ Ġwith ( project ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġextensions . create (" quality Checks ", ĠQuality Checks Extension :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġextensions . findBy Type ( Quality Checks Extension :: class . java ). check style ConfigFile Ġ= ĠFile . create TempFile (" temp ", Ġ". xml "). path ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġcheck style Task Ġ= Ġtasks . create (" check style ", ĠCheck style Task :: class . java ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertNotNull ( check style Task ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertEquals ( Quality Checks Plugin . VER IFICATION _ GROUP , Ġcheck style Task . group ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertTrue ( check style Task . configFile . name . startsWith (" temp ")) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }