/* Ċ Ġ* ĠCopyright Ġ 2 0 1 8 ĠThe ĠB azel ĠAuthors . ĠAll Ġrights Ġreserved . Ċ Ġ* Ċ Ġ* Ġ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 Ġio . bazel . kotlin Ċ Ċ import Ġorg . junit . Test Ċ Ċ class ĠKotlin Jvm K apt Assertion Test Ġ: ĠKotlin Assertion TestCase (" src / test / data / jvm / k apt ") Ġ{ ĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Kotlin Only Annotation Processing () Ġ{ ĊĠĠĠ Ġjar TestCase (" ap _ kotlin . jar ", Ġdescription Ġ= Ġ" annotation Ġprocessing Ġshould Ġwork ") Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries (" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value . class ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ mixed _ no _ plugin . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessing Ġshould Ġnot Ġkick Ġin Ġfor Ġdeps ." ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert DoesNot Contain Entries ( ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value . class ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / java / Test Auto Value \$ Builder . class " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ resources . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessed Ġartifacts Ġshould Ġcontain Ġresources " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries (" META - INF / services / tests . smoke . k apt . kotlin . Test Kt Service ") ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Mixed Mode Annotation Processing () Ġ{ ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ mixed . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessing Ġshould Ġwork Ġfor Ġmixed Ġmode Ġtargets " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries ( ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value . class ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / java / Test Auto Value \$ Builder . class " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ resources _ mixed . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessors Ġgenerating Ġresources Ġshould Ġwork Ġfor Ġmixed Ġmode " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries ( ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . kotlin . Test Kt Service ", ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . java . Test Java Service " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ mixed _ inherit _ plugin _ via _ exported _ deps . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessors Ġshould Ġbe Ġinherited Ġtransit ively " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries ( ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . kotlin . Test Kt Service ", ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . java . Test Java Service ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value . class ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / java / Test Auto Value \$ Builder . class " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Multi Plugins () Ġ{ ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ mixed _ multiple _ plugins . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessing Ġshould Ġwork Ġfor Ġmultiple Ġplugins " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries ( ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . kotlin . Test Kt Service ", ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . java . Test Java Service ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value . class ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / java / Test Auto Value \$ Builder . class " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġjar TestCase ( ĊĠĠĠĠĠ Ġ" ap _ kotlin _ mixed _ multiple _ plugins _ one _ without _ processor _ class . jar ", ĊĠĠĠĠĠ Ġdescription Ġ= Ġ" annotation Ġprocessing Ġshould Ġnot Ġwork Ġunless Ġa Ġprocessor Ġclass Ġis Ġprovided " ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠ Ġassert Contains Entries ( ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . kotlin . Test Kt Service ", ĊĠĠĠĠĠĠĠ Ġ" META - INF / services / tests . smoke . k apt . java . Test Java Service " ĊĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġassert DoesNot Contain Entries ( ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / java / Auto Value _ Test AP No Gen References . class ", ĊĠĠĠĠĠĠĠ Ġ" tests / smoke / k apt / kotlin / Auto Value _ Test Kt Value No References . class " ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ