package Ġcom . intellij . code Inspection . tests Ċ Ċ import Ġcom . intellij . code Inspection . Inspection Profile Entry Ċ import Ġcom . intellij . test Framework . fixtures . Java Code Insight Fixture TestCase Ċ Ċ abstract Ġclass ĠAnnot ated Element Usage Inspection TestBase Ġ: ĠJava Code Insight Fixture TestCase () Ġ{ ĊĠ Ġabstract Ġoverride Ġfun Ġget BasePath (): ĠString ĊĠ Ġabstract Ġfun Ġget Inspection (): ĠIns pection Profile Entry ĊĠ Ġabstract Ġfun Ġget Annotation String (): ĠString ĊĊĠ Ġopen Ġfun Ġperform Additional SetUp () Ġ{} ĊĊĠ Ġoverride Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġsuper . setUp () ĊĠĠĠ Ġperform Additional SetUp () ĊĠĠĠ Ġmy Fixture . enable Ins pe ctions ( get Inspection ()) ĊĊĠĠĠ Ġadd Annotated Elements To Project ( getAnnotation String ()) ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġadd Annotated Elements To Project ( annotation : ĠString ) Ġ{ ĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Annotated Annotation . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġ@ interface ĠAnnot ated Annotation Ġ{ ĊĠĠĠĠĠĠĠ ĠString Ġnon Annotated Attribute In Annotated Annotation () Ġdefault Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } ĠString Ġannotated Attribute In Annotated Annotation () Ġdefault Ġ""; ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Annotated Enum . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġenum ĠAnnot ated Enum Ġ{ ĊĠĠĠĠĠĠĠ ĠNON _ AN NOT ATED _ VALUE _ IN _ AN NOT ATED _ ENUM , ĊĠĠĠĠĠĠĠ Ġ${ annotation } ĠAN NOT ATED _ VALUE _ IN _ AN NOT ATED _ ENUM ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Annotated Class . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġclass ĠAnnot ated Class Ġ{ ĊĠĠĠĠĠĠĠ Ġpublic Ġstatic Ġfinal ĠString ĠNON _ AN NOT ATED _ CONSTANT _ IN _ AN NOT ATED _ CLASS Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġpublic ĠString Ġnon Annotated Field In Annotated Class Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġpublic ĠAnnot ated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġpublic Ġstatic Ġvoid Ġstatic Non Annotated Method In Annotated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġpublic Ġvoid Ġnon Annotated Method In Annotated Class () Ġ{} ĊĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġstatic Ġfinal ĠString ĠAN NOT ATED _ CONSTANT _ IN _ AN NOT ATED _ CLASS Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic ĠString Ġannotated Field In Annotated Class Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic ĠAnnot ated Class ( String Ġs ) Ġ{} ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġstatic Ġvoid Ġstatic Annotated Method In Annotated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġvoid Ġannotated Method In Annotated Class () Ġ{} ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĊĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Non Annotated Annotation . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġpublic Ġ@ interface ĠNon Annotated Annotation Ġ{ ĊĠĠĠĠĠĠĠ ĠString Ġnon Annotated Attribute In Non Annotated Annotation () Ġdefault Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } ĠString Ġannotated Attribute In Non Annotated Annotation () Ġdefault Ġ""; ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Non Annotated Enum . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġpublic Ġenum ĠNon Annotated Enum Ġ{ ĊĠĠĠĠĠĠĠ ĠNON _ AN NOT ATED _ VALUE _ IN _ NON _ AN NOT ATED _ ENUM , ĊĠĠĠĠĠĠĠ Ġ${ annotation } ĠAN NOT ATED _ VALUE _ IN _ NON _ AN NOT ATED _ ENUM ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĠĠĠ Ġmy Fixture . add File To Project ( ĊĠĠĠĠĠ Ġ" pkg / Non Annotated Class . java ", Ġ""" ĊĠĠĠĠĠ Ġpackage Ġpkg ; ĊĠĠĠĠĠ Ġpublic Ġclass ĠNon Annotated Class Ġ{ ĊĠĠĠĠĠĠĠ Ġpublic Ġstatic Ġfinal ĠString ĠNON _ AN NOT ATED _ CONSTANT _ IN _ NON _ AN NOT ATED _ CLASS Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġpublic ĠString Ġnon Annotated Field In Non Annotated Class Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġpublic ĠNon Annotated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġpublic Ġstatic Ġvoid Ġstatic Non Annotated Method In Non Annotated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġpublic Ġvoid Ġnon Annotated Method In Non Annotated Class () Ġ{} ĊĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġstatic Ġfinal ĠString ĠAN NOT ATED _ CONSTANT _ IN _ NON _ AN NOT ATED _ CLASS Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic ĠString Ġannotated Field In Non Annotated Class Ġ= Ġ""; ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic ĠNon Annotated Class ( String Ġs ) Ġ{} ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġstatic Ġvoid Ġstatic Annotated Method In Non Annotated Class () Ġ{} ĊĠĠĠĠĠĠĠ Ġ${ annotation } Ġpublic Ġvoid Ġannotated Method In Non Annotated Class () Ġ{} ĊĠĠĠĠĠ Ġ} """ ĊĠĠĠ Ġ) ĊĊĊĠĠĠ Ġmy Fixture . add File To Project (" annotated Pkg / package - info . java ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ"${ annotation }\ n " Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" package Ġannotated Pkg ; ") ĊĠĠĠ Ġmy Fixture . add File To Project (" annotated Pkg / Class In Annotated Pkg . java ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" package Ġannotated Pkg ;\ n " Ġ+ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ" public Ġclass ĠClass In Annotated Pkg Ġ{} ") ĊĠ Ġ} Ċ }