How to write tests for Extension points?
I have created 2 extension points for a plugin. How do I write tests for those extension points..
<extensionPoints> Are there any examples that I can look at? |
请先登录再写评论。
I have created 2 extension points for a plugin. How do I write tests for those extension points..
<extensionPoints> Are there any examples that I can look at? |
请先登录再写评论。
Hi,
in IDEA we normally test features. In this case you would call actions which use these extension points, not the extension points themselves.
If you want to write unit tests, then you may mock extension points as you would mock any other interface.
Probably I don't quite understand the question.
Anna