You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2007/11/15 18:05:52 UTC
svn commit: r595361 -
/lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java
Author: andreas
Date: Thu Nov 15 09:05:49 2007
New Revision: 595361
URL: http://svn.apache.org/viewvc?rev=595361&view=rev
Log:
Added failing test for bug 43858 (DocumentManager.moveAll())
Modified:
lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java
Modified: lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java?rev=595361&r1=595360&r2=595361&view=diff
==============================================================================
--- lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java (original)
+++ lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java Thu Nov 15 09:05:49 2007
@@ -169,6 +169,8 @@
Area authoring = pub.getArea("authoring");
SiteNode sourceNode = authoring.getSite().getNode(sourcePath);
+ String[] sourceNames = getChildNames(sourceNode);
+
NodeSet nodes = SiteUtil.getSubSite(getManager(), sourceNode);
Document[] docs = nodes.getDocuments();
Map doc2path = new HashMap();
@@ -187,5 +189,10 @@
String newPath = docs[i].getPath();
assertEquals(targetBase + oldPath, newPath);
}
+
+ SiteNode targetNode = authoring.getSite().getNode(targetPath);
+ String[] targetNames = getChildNames(targetNode);
+ assertEquals(StringUtil.join(sourceNames, ","), StringUtil.join(targetNames, ","));
+
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org