portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r537308 - /portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestCreateUserHomePagesFromRoles.java
Date Fri, 11 May 2007 22:45:30 GMT
Author: taylor
Date: Fri May 11 15:45:29 2007
New Revision: 537308

URL: http://svn.apache.org/viewvc?view=rev&rev=537308
Log:
https://issues.apache.org/jira/browse/JS2-665 broke the unit test

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

Modified: portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestCreateUserHomePagesFromRoles.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestCreateUserHomePagesFromRoles.java?view=diff&rev=537308&r1=537307&r2=537308
==============================================================================
--- portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestCreateUserHomePagesFromRoles.java
(original)
+++ portals/jetspeed-2/trunk/components/page-manager/src/test/org/apache/jetspeed/page/TestCreateUserHomePagesFromRoles.java
Fri May 11 15:45:29 2007
@@ -113,9 +113,6 @@
     
     public void testCreateUserHomePagesFromRoles() throws Exception
     {
-        if (0 == 0)
-            return;
-        
         PageManager pageManager = Shared.makeCastorXMLPageManager("pages", false, false);
        
 
         assertTrue("folder1 failed to create", pageManager.folderExists(FOLDER1));
@@ -141,16 +138,7 @@
 
         pageManager.createUserHomePagesFromRoles(subject);
         
-        assertTrue("failed to create role 1 page", pageManager.pageExists(DEFAULT_PAGE));
-        int count = 0;
-        if (pageManager.pageExists(ROLE_PAGE_1))
-            count++;
-        if (pageManager.pageExists(ROLE_PAGE_2))
-            count++;
-        if (pageManager.pageExists(ROLE_PAGE_3))
-            count++;
-        System.out.println("pages >>> " + count);
-        assertTrue("failed to create role pages 1..3", count == 2);
+        assertTrue("failed to create default page", pageManager.pageExists(DEFAULT_PAGE));
         assertTrue("failed to create sub page", pageManager.pageExists(SUB_PAGE));
         assertTrue("failed to create sub link", pageManager.linkExists(SUB_LINK));
     }



---------------------------------------------------------------------
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