directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r492556 - /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
Date Thu, 04 Jan 2007 13:19:14 GMT
Author: elecharny
Date: Thu Jan  4 05:19:13 2007
New Revision: 492556

URL: http://svn.apache.org/viewvc?view=rev&rev=492556
Log:
Fixed DIRSERVER-788. The attribute's name were stored lowercased.

Modified:
    directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java

Modified: directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java?view=diff&rev=492556&r1=492555&r2=492556
==============================================================================
--- directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
(original)
+++ directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
Thu Jan  4 05:19:13 2007
@@ -20,6 +20,7 @@
 package org.apache.directory.server;
 
 
+import java.util.Enumeration;
 import java.util.HashSet;
 import java.util.Hashtable;
 import java.util.Set;
@@ -394,6 +395,16 @@
         SearchResult result = ( SearchResult ) results.next();
         assertNotNull( result );
         assertFalse( results.hasMore() );
+        
+        NamingEnumeration attrs = result.getAttributes().getAll();
+        
+        while ( attrs.hasMoreElements() )
+        {
+            Attribute attr = (Attribute)attrs.next();
+            String ID = attr.getID();
+            assertEquals( "objectClasses", ID );
+        }
+        
         assertNotNull( result.getAttributes().get( "objectClasses" ) );
         assertEquals( 1, result.getAttributes().size() );
     }



Mime
View raw message