directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r357557 - in /directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support: RelatedProtectedItemFilterTest.java RelatedUserClassFilterTest.java
Date Sun, 18 Dec 2005 23:31:43 GMT
Author: elecharny
Date: Sun Dec 18 15:31:35 2005
New Revision: 357557

URL: http://svn.apache.org/viewcvs?rev=357557&view=rev
Log:
Replaced LdapName by LdapDN

Modified:
    directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedProtectedItemFilterTest.java
    directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedUserClassFilterTest.java

Modified: directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedProtectedItemFilterTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedProtectedItemFilterTest.java?rev=357557&r1=357556&r2=357557&view=diff
==============================================================================
--- directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedProtectedItemFilterTest.java
(original)
+++ directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedProtectedItemFilterTest.java
Sun Dec 18 15:31:35 2005
@@ -39,7 +39,7 @@
 import org.apache.ldap.common.aci.ProtectedItem.MaxValueCountItem;
 import org.apache.ldap.common.aci.ProtectedItem.RestrictedByItem;
 import org.apache.ldap.common.filter.PresenceNode;
-import org.apache.ldap.common.name.LdapName;
+import org.apache.ldap.common.name.LdapDN;
 import org.apache.ldap.server.event.ExpressionEvaluator;
 import org.apache.ldap.server.schema.AttributeTypeRegistry;
 import org.apache.ldap.server.schema.OidRegistry;
@@ -76,8 +76,8 @@
     {
         try
         {
-            GROUP_NAME = new LdapName( "ou=test,ou=groups,ou=system" );
-            USER_NAME = new LdapName( "ou=test, ou=users, ou=system" );
+            GROUP_NAME = new LdapDN( "ou=test,ou=groups,ou=system" );
+            USER_NAME = new LdapDN( "ou=test, ou=users, ou=system" );
             
             filterA = new RelatedProtectedItemFilter(
                     new RefinementEvaluator(
@@ -331,14 +331,14 @@
         Assert.assertEquals(
                 1, filterA.filter(
                         tuples, OperationScope.ENTRY, null, null, USER_NAME,
-                        null, null, new LdapName( "ou=testEntry" ),
+                        null, null, new LdapDN( "ou=testEntry" ),
                         null, null, entry, null ).size() );
         
         entry.remove( "attrA" );
         Assert.assertEquals(
                 0, filterA.filter(
                         tuples, OperationScope.ATTRIBUTE_TYPE_AND_VALUE, null, null, USER_NAME,
-                        null, null, new LdapName( "ou=testEntry" ),
+                        null, null, new LdapDN( "ou=testEntry" ),
                         null, null, entry, null ).size() );  
     }
     

Modified: directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedUserClassFilterTest.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedUserClassFilterTest.java?rev=357557&r1=357556&r2=357557&view=diff
==============================================================================
--- directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedUserClassFilterTest.java
(original)
+++ directory/apacheds/branches/DN-refactoring/core/src/test/java/org/apache/ldap/server/authz/support/RelatedUserClassFilterTest.java
Sun Dec 18 15:31:35 2005
@@ -33,7 +33,7 @@
 import org.apache.ldap.common.aci.ACITuple;
 import org.apache.ldap.common.aci.AuthenticationLevel;
 import org.apache.ldap.common.aci.UserClass;
-import org.apache.ldap.common.name.LdapName;
+import org.apache.ldap.common.name.LdapDN;
 import org.apache.ldap.server.subtree.SubtreeEvaluator;
 
 /**
@@ -62,8 +62,8 @@
     {
         try
         {
-            GROUP_NAME = new LdapName( "ou=test,ou=groups,ou=system" );
-            USER_NAME = new LdapName( "ou=test, ou=users, ou=system" );
+            GROUP_NAME = new LdapDN( "ou=test,ou=groups,ou=system" );
+            USER_NAME = new LdapDN( "ou=test, ou=users, ou=system" );
         }
         catch( NamingException e )
         {
@@ -104,7 +104,7 @@
         Assert.assertEquals(
                 0, filter.filter(
                         tuples, OperationScope.ENTRY, null, null, USER_NAME,
-                        null, AuthenticationLevel.NONE, new LdapName( "ou=unrelated" ),
+                        null, AuthenticationLevel.NONE, new LdapDN( "ou=unrelated" ),
                         null, null, null, null ).size() );  
     }
     
@@ -118,7 +118,7 @@
                         null, null, null, null ).size() );  
         Assert.assertEquals(
                 0, filter.filter(
-                        tuples, OperationScope.ENTRY, null, null, new LdapName( "ou=unrelateduser,
ou=users" ),
+                        tuples, OperationScope.ENTRY, null, null, new LdapDN( "ou=unrelateduser,
ou=users" ),
                         null, AuthenticationLevel.NONE, USER_NAME,
                         null, null, null, null ).size() );  
     }
@@ -133,7 +133,7 @@
                         null, null, null, null ).size() );  
         
         Set wrongGroupNames = new HashSet();
-        wrongGroupNames.add( new LdapName( "ou=unrelatedgroup" ) );
+        wrongGroupNames.add( new LdapDN( "ou=unrelatedgroup" ) );
         
         Assert.assertEquals(
                 0, filter.filter(
@@ -209,7 +209,7 @@
             Set names = new HashSet();
             try
             {
-                names.add( new LdapName( "dummy=dummy" ) );
+                names.add( new LdapDN( "dummy=dummy" ) );
             }
             catch( NamingException e )
             {



Mime
View raw message