svn commit: r595361 - /lenya/trunk/src/impl/test/org/apache/lenya/cms/publication/DocumentManagerTest.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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, ","));
+        
     }
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.