package Ġcom . a em tools . completion . ht l . common Ċ Ċ import Ġcom . a em tools . test . H tl TestCase Ċ import Ġcom . a em tools . test . fixture . J dk Project Descriptor Ċ import Ġcom . a em tools . test . fixture . U ber Jar Fixture Mixin Ċ import Ġcom . intellij . code Insight . completion . Light Fixture Completion TestCase Ċ import Ġcom . intellij . openapi . vfs . new vfs . impl . V fs Root Access Ċ import Ġcom . intellij . test Framework . Light Project Descriptor Ċ import Ġcom . intellij . test Framework . fixtures . Java Code Insight TestFixture Ċ import Ġcom . intellij . test Framework . fixtures . Light Java Code Insight Fixture TestCase Ċ import Ġjava . io . File Ċ Ċ /** Ċ Ġ* Ġ@ author ĠD my tro ĠPrim sh y ts . Ċ Ġ*/ Ċ class ĠPre defined Variables Completion Test Ġ: ĠLight Fixture Completion TestCase (), ĊĠĠĠ ĠU ber Jar Fixture Mixin Ġ{ ĊĊĠ Ġfun Ġtest Complete Started Variable () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Second Level Completion () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Third Level Completion () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Completion Within Array () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Completion Within T ernary Operation () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Completion Within Context () Ġ= Ġdo Test () ĊĠ Ġfun Ġtest Completion WithContext Present () Ġ= Ġdo Test () ĊĊĠ Ġfun ĠtestData S ly Use Variable () Ġ= Ġdo Test () ĊĊĠ Ġfun ĠtestData S ly Use Second Level () Ġ= Ġdo Test () ĊĊĠ Ġfun ĠtestData S ly Use Second Level Resolved From EL () Ġ= Ġdo Test () ĊĊĠ Ġfun ĠtestData S ly Test Variable () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Completion With Pre defined Value () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġtest Array Like Access Single quoted () Ġ= Ġdo Test () ĊĠ Ġfun Ġtest Array Like Access Double quoted () Ġ= Ġdo Test () ĊĊĠ Ġfun Ġdo Test ( completion Char : ĠChar Ġ= Ġ'\ n ') Ġ{ ĊĠĠĠ Ġval ĠfileName Ġ= Ġget Test Name ( true ) ĊĊĠĠĠ Ġconfigure By File ("$ fileName . html ") ĊĠĠĠ Ġcomplete () ĊĠĠĠ Ġif Ġ( my Items Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠ Ġval Ġitem Ġ= Ġmy Items . single OrNull () ĊĠĠĠĠĠ Ġif Ġ( item Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠ Ġselect Item ( item , Ġcompletion Char ) ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcheck Result By File ("$ fileName . html . after ") ĊĠ Ġ} ĊĊĠ Ġval Ġfixture : ĠJava Code Insight TestFixture ĊĠĠĠ Ġget () Ġ= Ġmy Fixture ĊĊĠ Ġoverride Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġsuper . setUp () ĊĠĠĠ ĠV fs Root Access . allow Root Access ( my Fixture . test Root Disposable , ĠFile (" src / test "). absolute Path ) ĊĠĠĠ ĠV fs Root Access . allow Root Access ( my Fixture . project Disposable , ĠFile (" src / test "). absolute Path ) ĊĠĠĠ Ġmy Fixture . add U ber Jar () ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġsuper . te ar Down () ĊĠĠĠ Ġ// V fs Root Access . dis allow Root Access ( File (" src / test "). absolute Path ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġget TestData Path () Ġ= ĠFile ("${ H tl TestCase . test Resources Path }/ com / a em tools / completion / ht l / fixtures / "). path Ġ+ Ġ"/" ĊĊĠ Ġoverride Ġfun Ġget Project Descriptor (): ĠLight Project Descriptor Ġ{ ĊĠĠĠ Ġreturn ĠJ dk Project Descriptor () ĊĠ Ġ} Ċ Ċ } Ċ