// ĠCopyright Ġ 2 0 0 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġorg . jetbrains . idea . dev kit . kotlin . ins pe ctions Ċ Ċ import Ġcom . intellij . code Inspection . Local Inspection EP Ċ import Ġcom . intellij . lang . Language Extension Point Ċ import Ġcom . intellij . test Framework . TestData Path Ċ import Ġcom . intellij . test Framework . builders . Java Module Fixture Builder Ċ import Ġcom . intellij . test Framework . fixtures . Java Code Insight Fixture TestCase Ċ import Ġcom . intellij . util . Path Util Ċ import Ġorg . jetbrains . idea . dev kit . ins pe ctions . Inspection Description NotFound Inspection Ċ import Ġorg . jetbrains . idea . dev kit . kotlin . Dev kit Kt Tests Util Ċ import Ġjava . nio . file . Paths Ċ Ċ @ TestData Path ("\ $ CONTENT _ ROOT / testData / ins pe ctions / inspection Description ") Ċ class ĠK t Inspection Description NotFound Inspection Test Ġ: ĠJava Code Insight Fixture TestCase () Ġ{ ĊĊĠ Ġoverride Ġfun Ġget BasePath (): ĠString ? Ġ{ ĊĠĠĠ Ġreturn ĠDev kit Kt Tests Util . TEST DATA _ PATH Ġ+ Ġ" ins pe ctions / inspection Description " ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġtune Fixture ( module Builder : ĠJava Module Fixture Builder <* >) Ġ{ ĊĠĠĠ Ġmodule Builder . add Library (" core - api ", ĠPath Util . get Jar Path For Class ( Language Extension Point :: class . java )) ĊĠĠĠ Ġmodule Builder . add Library (" analysis - api ", ĠPath Util . get Jar Path For Class ( Local Inspection EP :: class . java )) ĊĠĠĠ Ġmodule Builder . add Library (" platform - resources ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPaths . get ( Path Util . get Jar Path For Class ( Local Inspection EP :: class . java )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. resolve Sibling (" intellij . platform . resources "). toString ()) ĊĠ Ġ} ĊĊĠ Ġ@ Throws ( Exception :: class ) ĊĠ Ġoverride Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġsuper . setUp () ĊĠĠĠ Ġmy Fixture . enable Ins pe ctions ( Inspection Description NotFound Inspection :: class . java ) ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Highlighting For Description () Ġ{ ĊĠĠĠ Ġmy Fixture . test Highlighting (" My Inspection . kt ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Override Path Method () Ġ{ ĊĠĠĠ Ġmy Fixture . test Highlighting (" My Override Path Method Inspection . kt ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Highlighting For Description Custom ShortName () Ġ{ ĊĠĠĠ Ġmy Fixture . test Highlighting (" My Inspection Custom ShortName . kt "); ĊĠ Ġ} ĊĊĠ Ġfun Ġtest With Description () Ġ{ ĊĠĠĠ Ġmy Fixture . copy Directory To Project (" inspection Descriptions ", Ġ" inspection Descriptions ") ĊĠĠĠ Ġmy Fixture . test Highlighting (" My With Description Inspection . kt ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest With Description Custom ShortName () Ġ{ ĊĠĠĠ Ġmy Fixture . copy Directory To Project (" inspection Descriptions ", Ġ" inspection Descriptions ") ĊĠĠĠ Ġmy Fixture . test Highlighting (" My With Description Custom ShortName Inspection . kt ") ĊĠ Ġ} Ċ Ċ }