directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r808383 - /directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Date Thu, 27 Aug 2009 12:06:40 GMT
Author: elecharny
Date: Thu Aug 27 12:06:39 2009
New Revision: 808383

URL: http://svn.apache.org/viewvc?rev=808383&view=rev
Log:
Fixed a failing test

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

Modified: directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=808383&r1=808382&r2=808383&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Thu Aug 27 12:06:39 2009
@@ -79,7 +79,7 @@
         oids = new HashMap<String, OidNormalizer>();
 
         // DC normalizer
-        OidNormalizer dcOidNormalizer = new OidNormalizer( "dc",
+        OidNormalizer dcOidNormalizer = new OidNormalizer( SchemaConstants.DOMAIN_COMPONENT_AT_OID,
             new DeepTrimToLowerNormalizer( SchemaConstants.DOMAIN_COMPONENT_AT_OID ) );
         
         oids.put( "dc", dcOidNormalizer );
@@ -87,7 +87,7 @@
         oids.put( "0.9.2342.19200300.100.1.25", dcOidNormalizer );
 
         // OU normalizer
-        OidNormalizer ouOidNormalizer = new OidNormalizer( "ou",
+        OidNormalizer ouOidNormalizer = new OidNormalizer( SchemaConstants.OU_AT_OID,
             new DeepTrimToLowerNormalizer( SchemaConstants.OU_AT_OID ) );
         
         oids.put( "ou", ouOidNormalizer );
@@ -2496,9 +2496,9 @@
 
         assertTrue( name.getUpName().equals( "ou= Some   People   ,dc = eXample,dc= cOm"
) );
 
-        Name result = LdapDN.normalize( name, oids );
+        LdapDN result = LdapDN.normalize( name, oids );
 
-        assertTrue( result.toString().equals( "ou=some people,dc=example,dc=com" ) );
+        assertEquals( "2.5.4.11=some people,0.9.2342.19200300.100.1.25=example,0.9.2342.19200300.100.1.25=com",
result.getNormName() );
     }
 
 



Mime
View raw message