agains misc. PsiElements.
=> I need to produce those elements.
Mocks (stubs) are ok for simple elements (tokens, literal), but not for
complex one (block, expressions, methods, ..)
I thought about using :
PsiElementFactory factory = i_mgr.getElementFactory();
PsiStatement newStatement =
but I need a manager to obtain the element factory....
Hence my request.
The next step is to write/test IntentionAction(s) the same way
=> how to obtain a valid Project & PsiFile?
Note: if only JetBrains could share - part of - their editor test
framework, life would be easier, and plugins would come earlier.