package Ġcom . cr ic ut . test gen . actions Ċ Ċ import Ġcom . cr ic ut . test gen . actions . Test Generator Action Ċ import Ġcom . cr ic ut . test gen . actions . Text Generator Action Handler Ċ import Ġcom . intellij . openapi . vfs . Local FileSystem Ċ import Ġcom . intellij . test Framework . He avy Platform TestCase Ċ import Ġcom . intellij . test Framework . fixtures . Ide a TestFixture Factory Ċ import Ġcom . intellij . test Framework . fixtures . Java TestFixture Factory Ċ import Ġorg . jetbrains . kotlin . psi . Kt File ĊĊ Ċ class ĠTest Generator Action Test : ĠHe avy Platform TestCase () Ġ{ ĊĊĠĠĠ Ġfun Ġ` test Ġdo Ġsomething ` (){ ĊĊĠĠĠĠĠĠĠ Ġval Ġproject Builder Ġ= ĠIde a TestFixture Factory . get Fixture Factory (). create Fixture Builder ( name ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmy Fixture Ġ= ĠJava TestFixture Factory . get Fixture Factory (). create Code Insight Fixture ( project Builder . fixture ) ĊĊĠĠĠĠĠĠĠ Ġmy Fixture . test Action ( Test Generator Action ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġ` do Ġnot Ġtest Ġaction Ġhandler ` (){ ĊĠĠĠĠĠĠĠ Ġval Ġproject Builder Ġ= ĠIde a TestFixture Factory . get Fixture Factory (). create Fixture Builder ( name ) ĊĊĠĠĠĠĠĠĠ Ġval Ġmy Fixture Ġ= ĠJava TestFixture Factory . get Fixture Factory (). create Code Insight Fixture ( project Builder . fixture ) ĊĊĠĠĠĠĠĠĠ Ġmy Fixture . testData Path Ġ= Ġ" src / test / testData " ĊĠĠĠĠĠĠĠ Ġmy Fixture . setUp () ĊĊĠĠĠĠĠĠĠ Ġval Ġkotlin File Ġ= ĠLocal FileSystem . getInstance (). find File By Path (" src / test / testData / Simple TestData . kt ") !! ĊĠĠĠĠĠĠĠ Ġval Ġkotlin Psi Ġ= Ġpsi Manager . find File ( kotlin File ) !! Ġas ĠK t File ĊĠĠĠĠĠĠĠ Ġmy Fixture . open File In Editor ( kotlin Psi . virtual File ) ĊĊĠĠĠĠĠĠĠ ĠText Generator Action Handler . invoke ( project , Ġmy Fixture . editor , Ġkotlin Psi ) ĊĠĠĠ Ġ} Ċ }