incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r164175 - in /incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl: AllFilesTestRdbmsPolicy.java AllPermissionTestRdbmsPolicy.java TestRdbmsPolicy.java
Date Fri, 22 Apr 2005 05:27:40 GMT
Author: clombart
Date: Thu Apr 21 22:27:39 2005
New Revision: 164175

URL: http://svn.apache.org/viewcvs?rev=164175&view=rev
Log:
UPdate unit tests

Modified:
    incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllFilesTestRdbmsPolicy.java
    incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllPermissionTestRdbmsPolicy.java
    incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/TestRdbmsPolicy.java

Modified: incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllFilesTestRdbmsPolicy.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllFilesTestRdbmsPolicy.java?rev=164175&r1=164174&r2=164175&view=diff
==============================================================================
--- incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllFilesTestRdbmsPolicy.java
(original)
+++ incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllFilesTestRdbmsPolicy.java
Thu Apr 21 22:27:39 2005
@@ -26,7 +26,7 @@
 import org.apache.jetspeed.security.impl.UserPrincipalImpl;
 import org.apache.portals.graffito.security.CmsAccessController;
 import org.apache.portals.graffito.security.impl.AbstractSecurityTestcase;
-import org.apache.portals.graffito.security.impl.CmsPermission;
+import org.apache.portals.graffito.security.impl.CmsPermissionImpl;
 
 /**
  * Test permission on "<< ALL FILES >>"
@@ -126,7 +126,7 @@
 
         UserPrincipal user = new UserPrincipalImpl("anon");
 
-        CmsPermission perm1 = new CmsPermission("<<ALL FILES>>", "view,edit,insert");
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("<<ALL FILES>>", "view,edit,insert");
         
         try
         {
@@ -149,7 +149,7 @@
     {
         ums.removeUser("anon");
 
-        CmsPermission perm1 = new CmsPermission("<<ALL FILES>>", "view,edit,insert");
      
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("<<ALL FILES>>", "view,edit,insert");
      
         pms.removePermission(perm1);
     }
 

Modified: incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllPermissionTestRdbmsPolicy.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllPermissionTestRdbmsPolicy.java?rev=164175&r1=164174&r2=164175&view=diff
==============================================================================
--- incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllPermissionTestRdbmsPolicy.java
(original)
+++ incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/AllPermissionTestRdbmsPolicy.java
Thu Apr 21 22:27:39 2005
@@ -26,7 +26,7 @@
 import org.apache.jetspeed.security.impl.UserPrincipalImpl;
 import org.apache.portals.graffito.security.CmsAccessController;
 import org.apache.portals.graffito.security.impl.AbstractSecurityTestcase;
-import org.apache.portals.graffito.security.impl.CmsPermission;
+import org.apache.portals.graffito.security.impl.CmsPermissionImpl;
 
 /**
  * This unit test comes from Jetspeed 2. It used to check if the J2 security
@@ -126,7 +126,7 @@
 
         UserPrincipal user = new UserPrincipalImpl("anon");
 
-        CmsPermission perm1 = new CmsPermission("/files/-", "all");
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("/files/-", "all");
         
         try
         {
@@ -149,7 +149,7 @@
     {
         ums.removeUser("anon");
 
-        CmsPermission perm1 = new CmsPermission("/files/-", "all");       
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("/files/-", "all");       
         pms.removePermission(perm1);
     }
 

Modified: incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/TestRdbmsPolicy.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/TestRdbmsPolicy.java?rev=164175&r1=164174&r2=164175&view=diff
==============================================================================
--- incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/TestRdbmsPolicy.java
(original)
+++ incubator/graffito/trunk/components/src/test/org/apache/portals/graffito/security/impl/TestRdbmsPolicy.java
Thu Apr 21 22:27:39 2005
@@ -33,7 +33,7 @@
 import org.apache.portals.graffito.context.CmsRequestContext;
 import org.apache.portals.graffito.security.CmsAccessController;
 import org.apache.portals.graffito.security.impl.AbstractSecurityTestcase;
-import org.apache.portals.graffito.security.impl.CmsPermission;
+import org.apache.portals.graffito.security.impl.CmsPermissionImpl;
 
 /**
  * This unit test comes from Jetspeed 2. It used to check if the J2 security
@@ -173,10 +173,10 @@
 
         UserPrincipal user = new UserPrincipalImpl("anon");
 
-        CmsPermission perm1 = new CmsPermission("/files/test.xml", "edit");
-        CmsPermission perm2 = new CmsPermission("/files/subfolder1/*", "view");
-        CmsPermission perm3 = new CmsPermission("/files/subfolder2/-", "view");
-        CmsPermission perm4 = new CmsPermission("/files/subfolder3/*", "view,insert");
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("/files/test.xml", "edit");
+        CmsPermissionImpl perm2 = new CmsPermissionImpl("/files/subfolder1/*", "view");
+        CmsPermissionImpl perm3 = new CmsPermissionImpl("/files/subfolder2/-", "view");
+        CmsPermissionImpl perm4 = new CmsPermissionImpl("/files/subfolder3/*", "view,insert");
         
         try
         {
@@ -205,10 +205,10 @@
     {
         ums.removeUser("anon");
 
-        CmsPermission perm1 = new CmsPermission("/files/test.xml", "edit");
-        CmsPermission perm2 = new CmsPermission("/files/subfolder1/*", "view");
-        CmsPermission perm3 = new CmsPermission("/files/subfolder2/-", "view");
-        CmsPermission perm4 = new CmsPermission("/files/subfolder3/-", "view,insert");
+        CmsPermissionImpl perm1 = new CmsPermissionImpl("/files/test.xml", "edit");
+        CmsPermissionImpl perm2 = new CmsPermissionImpl("/files/subfolder1/*", "view");
+        CmsPermissionImpl perm3 = new CmsPermissionImpl("/files/subfolder2/-", "view");
+        CmsPermissionImpl perm4 = new CmsPermissionImpl("/files/subfolder3/-", "view,insert");
         pms.removePermission(perm1);
         pms.removePermission(perm2);
         pms.removePermission(perm3);



Mime
View raw message