svn commit: r603527 - /lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Wed Dec 12 02:01:19 2007
New Revision: 603527

URL: http://svn.apache.org/viewvc?rev=603527&view=rev
Log:
ImportTest: don't commit session if link check failed.

Modified:
    lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java

Modified: lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java?rev=603527&r1=603526&r2=603527&view=diff
==============================================================================
--- lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java (original)
+++ lenya/trunk/src/modules/export/java/test/org/apache/lenya/cms/export/ImportTest.java Wed Dec 12 02:01:19 2007
@@ -52,11 +52,12 @@
             String path = pubPath.replace(File.separatorChar, '/') + "/example-content";
             Importer importer = new Importer(getManager(), getLogger());
             importer.importContent(defaultPub, area, path);
+            
+            assertTrue(area.getSite().contains("/tutorial"));
+            checkLinks(area);
+            
             session.commit();
         }
-        
-        assertTrue(area.getSite().contains("/tutorial"));
-        checkLinks(area);
         
         Session aliceSession = login("alice");
         Publication alicePub = getPublication(aliceSession, "test");
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.