package Ġco . nums . intellij . a em . ht l Ċ Ċ import Ġcom . intellij . test Framework . fixtures . Java Code Insight TestFixture Ċ import Ġjava . io . File Ċ import Ġjava . nio . file .* Ċ Ċ interface ĠH tl TestCase Ġ{ ĊĊĠĠĠ Ġfun Ġget TestData Path (): ĠString ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtest Resources Path Ġ= Ġ" src / test / resources " ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ fun ĠH tl TestCase . path To Source Test File ( name : ĠString ): ĠPath Ġ= ĊĠĠĠĠĠĠĠ ĠPaths . get ("${ H tl TestCase . test Resources Path }/${ get TestData Path () }/ $ name . html ") Ċ Ċ fun ĠH tl TestCase . path To Gold Test File ( name : ĠString ): ĠPath Ġ= ĊĠĠĠĠĠĠĠ ĠPaths . get ("${ H tl TestCase . test Resources Path }/${ get TestData Path () }/ $ name . txt ") Ċ Ċ fun ĠJava Code Insight TestFixture . add A em Class ( className : ĠString ) Ġ{ ĊĠĠĠ Ġthis . addClass ( File (" src / test / resources / co / nums / intellij / a em / a em - classes /$ className "). read Text ()) Ċ } Ċ