directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r412231 - /directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Tue, 06 Jun 2006 22:36:27 GMT
Author: elecharny
Date: Tue Jun  6 15:36:27 2006
New Revision: 412231

URL: http://svn.apache.org/viewvc?rev=412231&view=rev
Log:
Fixed the test accordingly to the LdapDN modification on normalization

Modified:
    directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java

Modified: directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=412231&r1=412230&r2=412231&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Tue Jun  6 15:36:27 2006
@@ -2052,7 +2052,8 @@
         oids.put( "organizationalUnitName", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer()
) );
         oids.put( "2.5.4.11", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer() )
);
 
-        Name result = LdapDN.normalize( name, oids );
+        LdapDN.setOidsMap( oids );
+        Name result = LdapDN.normalize( name );
 
         assertTrue( result.toString().equals( "ou=some people,dc=example,dc=com" ) );
         assertTrue( ( ( LdapDN ) result ).toUpName().equals( "ou= Some   People   ,dc = eXample,dc=
cOm" ) );
@@ -2075,7 +2076,8 @@
         oids.put( "organizationalUnitName", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer()
) );
         oids.put( "2.5.4.11", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer() )
);
 
-        Name result = LdapDN.normalize( name, oids );
+        LdapDN.setOidsMap( oids );
+        Name result = LdapDN.normalize( name );
         assertTrue( result.toString().equals( "" ) );
     }
 
@@ -2097,7 +2099,8 @@
         oids.put( "organizationalUnitName", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer()
) );
         oids.put( "2.5.4.11", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer() )
);
 
-        Name result = LdapDN.normalize( name, oids );
+        LdapDN.setOidsMap( oids );
+        Name result = LdapDN.normalize( name );
 
         assertTrue( result.toString().equals( "dc=and some animals+ou=some people,dc=example,dc=com"
) );
         assertTrue( ( ( LdapDN ) result )
@@ -2124,7 +2127,8 @@
         oids.put( "organizationalUnitName", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer()
) );
         oids.put( "2.5.4.11", new OidNormalizer( "ou", new DeepTrimToLowerNormalizer() )
);
 
-        LdapDN result = LdapDN.normalize( name, oids );
+        LdapDN.setOidsMap( oids );
+        LdapDN result = LdapDN.normalize( name );
 
         assertTrue( result.toString().equals( "dc=and some animals+ou=some people,dc=example,dc=com"
) );
         assertTrue( ( ( LdapDN ) result )



Mime
View raw message