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>
<extensionPoint qualifiedName="org.plugin.customFieldFactory" interface="org.plugin.CustomFieldCompletionFactory"/>
<extensionPoint qualifiedName="org.plugin.customValueFactory" interface="org.plugin.CustomValueCompletionFactory"/>
</extensionPoints>

Are there any examples that I can look at?

0

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

0

请先登录再写评论。