Hi Vincent, For example I have a HQL request to find all document containing XWikiServerClass objet with, in this object, the "visibility" field equals to "template". I think that just do an equal test on HQL String using jmock is not sufficient as It can broke the test later even if the modification on the request did not really broke the feature tested... 2007/8/23, Vincent Massol <[email protected]>:
Hi Thomas,
If you're testing the persistence layer then you need a running database and hence integration/functional tests. If you're testing something else then you can mock the XWikiStorage interface (or whatever its name is).
What do you want to test specifically?
Thanks -Vincent
On Aug 23, 2007, at 11:28 AM, Thomas Mortagne wrote:
Hello all,
I have some features for which I need to write unit tests but it imply HQL request difficult to cleanly emulate with jmock. Is there an over way to tests theses ? Ludovic talk to me about integrations tests that use the complete platform with real database but he was not sure of this so I ask :)
Regards
-- Thomas Mortagne
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Thomas Mortagne