so 9. 10. 2021 v 19:27 odesílatel Karl-Philipp Richter <[email protected]>
napsal:

> Hi,
> I wanted to contribute some unit tests to the project. As far I
> understand there's no mocking framework in use currently looking
>

That's not  entirely true. There is `MockServices` class:
https://bits.netbeans.org/dev/javadoc/org-netbeans-modules-nbjunit/org/netbeans/junit/MockServices.html

It may not be as comfortable as Mockito & co., but it is enough to test
everything as NetBeans architecture is based on "injectable singletons"
pattern:

http://wiki.apidesign.org/wiki/Injectable_Singleton

-jt

Reply via email to