portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r379555 - /portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java
Date Tue, 21 Feb 2006 18:17:46 GMT
Author: taylor
Date: Tue Feb 21 10:17:43 2006
New Revision: 379555

URL: http://svn.apache.org/viewcvs?rev=379555&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-495

Modified:
    portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java

Modified: portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java?rev=379555&r1=379554&r2=379555&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java
(original)
+++ portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestTransactions.java
Tue Feb 21 10:17:43 2006
@@ -15,41 +15,23 @@
  */
 package org.apache.jetspeed.page;
 
-import java.security.Principal;
-import java.security.PrivilegedAction;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-                                                                                        
            
-import javax.security.auth.Subject;
+import junit.framework.Test;
+import junit.framework.TestSuite;
 
+import org.apache.jetspeed.components.test.AbstractSpringTestCase;
 import org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase;
-import org.apache.jetspeed.om.common.SecurityConstraint;
-import org.apache.jetspeed.om.common.SecurityConstraints;
 import org.apache.jetspeed.om.folder.Folder;
-import org.apache.jetspeed.om.folder.FolderNotFoundException;
-import org.apache.jetspeed.om.page.Fragment;
-import org.apache.jetspeed.om.page.Link;
 import org.apache.jetspeed.om.page.Page;
-import org.apache.jetspeed.om.page.PageSecurity;
-import org.apache.jetspeed.om.page.SecurityConstraintsDef;
-import org.apache.jetspeed.security.UserPrincipal;
-import org.apache.jetspeed.security.impl.PrincipalsSet;
-import org.apache.jetspeed.security.impl.RolePrincipalImpl;
-import org.apache.jetspeed.security.impl.UserPrincipalImpl;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
 
 /**
- * TestSecureDatabasePageManager
+ * Test Transactions
  * 
  * @author <a href="rwatler@apache.org">Randy Watler</a>
+ * @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>
  * @version $Id: $
  *          
  */
-public class TestTransactions extends DatasourceEnabledSpringTestCase implements PageManagerTestShared
+public class TestTransactions extends  /*AbstractSpringTestCase*/ DatasourceEnabledSpringTestCase
implements PageManagerTestShared
 {
     protected PageManager pageManager;
 
@@ -81,6 +63,10 @@
 
     public void testTx() throws Exception
     {
+        if (pageManager.folderExists("/"))
+        {
+            pageManager.removeFolder(pageManager.getFolder("/"));
+        }
         Folder root = pageManager.newFolder("/");
         pageManager.updateFolder(root);
         Page[] pages = new Page[3];



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message