Thanks Thomas, I was definitely looking at unit tests. As much as possible I'd be looking for mock objects. AbstractBridgedXWikiComponentTestCase tastes like one indeed. But... is there any chance that this class runs with xwiki 1.5.4 ?? thanks paul Le 03-févr.-10 à 19:45, Thomas Mortagne a écrit :
I depends what you want to test.
If you want to do unit test you can look at Lucene plugin itself which contains some already (some of them mock storage and observation manager for example). You can look at http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-plugins/trunk/lucene/src/t... .
IMO unit test sounds the best in your case since you can easily mock/emulate everything the plugin needs in general and it's a lot easier than integration tests to debug (works well inside Eclipse for example using the junit plugin).