On Wed, Feb 3, 2010 at 20:46, Paul Libbrecht <paul(a)activemath.org> wrote:
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 ??
Yes but in 1.5.2 it's located in old shared-test tool project instead
of xwiki-core project. See
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-tools/tags/xwiki-shared-t…
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/…
.
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).
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Thomas Mortagne