/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 2 1 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . android . build . api . extension Ċ Ċ import Ġcom . android . build . api . variant . Dsl Extension Ċ import Ġcom . google . common . truth . Truth Ċ import Ġorg . junit . Test Ċ Ċ class ĠD sl Extension Test Ġ{ ĊĊĠĠĠ Ġinterface ĠD sl Extension Type ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Build Type Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġd sl Extension Ġ= ĠD sl Extension . Builder (" extension ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. extend Build Type With ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . dsl Name ). isEqualTo (" extension ") ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . build Type Extension Type ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . product Flavor Extension Type ). isNull () ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . project Extension Type ). isNull () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Module Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġd sl Extension Ġ= ĠD sl Extension . Builder (" extension ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. extend Project With ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . dsl Name ). isEqualTo (" extension ") ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . project Extension Type ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . product Flavor Extension Type ). isNull () ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . build Type Extension Type ). isNull () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Product Flavor Extension () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġd sl Extension Ġ= ĠD sl Extension . Builder (" extension ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. extend Product Flavor With ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . dsl Name ). isEqualTo (" extension ") ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . product Flavor Extension Type ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( Dsl Extension Type :: class . java ) ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . project Extension Type ). isNull () ĊĠĠĠĠĠĠĠ ĠTr uth . assertThat ( dsl Extension . build Type Extension Type ). isNull () ĊĠĠĠ Ġ} Ċ } Ċ