r1241 - xwiki/trunk/src/test/java/com/xpn/xwiki/test/plugin/query
Ludovic Dubost
ludovic at users.forge.objectweb.org
Tue Aug 29 11:44:42 CEST 2006
Author: ludovic
Date: 2006-08-29 11:44:41 +0200 (Tue, 29 Aug 2006)
New Revision: 1241
Modified:
xwiki/trunk/src/test/java/com/xpn/xwiki/test/plugin/query/QueryPluginTest.java
Log:
Fix query plugin test which was missing an order to be sure of the result
Modified: xwiki/trunk/src/test/java/com/xpn/xwiki/test/plugin/query/QueryPluginTest.java
===================================================================
--- xwiki/trunk/src/test/java/com/xpn/xwiki/test/plugin/query/QueryPluginTest.java 2006-08-29 07:45:53 UTC (rev 1240)
+++ xwiki/trunk/src/test/java/com/xpn/xwiki/test/plugin/query/QueryPluginTest.java 2006-08-29 09:44:41 UTC (rev 1241)
@@ -336,8 +336,8 @@
checkEquals(qf.getAttachment("Test.TestAttach2", "*", null).list(), new Object[]{attachment3});
testSearchXP("//Test/TestAttach2/attach/testfile1", new Object[]{attachment3});
checkEquals(qf.getAttachment("Test.TestAttach2", "testfile1", null).list(), new Object[]{attachment3});
- testSearchXP("//*/*/attach/testfile1", new Object[]{attachment3, attachment1});
- checkEquals(qf.getAttachment("*.*", "testfile1", null).list(), new Object[]{attachment3, attachment1});
+ testSearchXP("//*/*/attach/testfile1 order by @date", new Object[]{attachment1, attachment3});
+ checkEquals(qf.getAttachment("*.*", "testfile1", "date").list(), new Object[]{attachment1, attachment3});
testSearchXP("//Test/*[@author='Someone']/attach/*[@comment!='']", new Object[]{attachment2});
checkEquals(qf.getAttachment("Test.*[@author='Someone']", "*[@comment!='']", null).list(), new Object[]{attachment2});
// hb.endTransaction(getXWikiContext(), false);
More information about the Xwiki-notifications
mailing list