Testing method - PSI model

In my plugin I load a PsiClass and create JavaRecursiveElementVisitor to visit elements. I run this in ApplicationManager.getApplication().runReadAction.

 

Can I create PsiClass in my tests (for example load java file) so I can test my JavaRecursiveElementVisitor implementation?

 

Please sign in to leave a comment.