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/12/12 11:01:20 UTC

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

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");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org