directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r428549 - /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
Date Thu, 03 Aug 2006 22:11:30 GMT
Author: elecharny
Date: Thu Aug  3 15:11:30 2006
New Revision: 428549

URL: http://svn.apache.org/viewvc?rev=428549&view=rev
Log:
Fixed the test of DIRSERVER-635 : spaces are not allowed into
filters, and results are not really what were expected

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

Modified: directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/SearchTest.java?rev=428549&r1=428548&r2=428549&view=diff
==============================================================================
--- directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
(original)
+++ directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/SearchTest.java
Thu Aug  3 15:11:30 2006
@@ -118,7 +118,7 @@
         // setup and search
         SearchControls controls = new SearchControls();
         controls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
-        NamingEnumeration ii = ctx.search( "", "( | ( cn=Kate Bush ) ( cn=Tori Amos) )",
controls );
+        NamingEnumeration ii = ctx.search( "", "(|(cn=Kate Bush)(cn=Tori Amos))", controls
);
         
         // collect all results 
         HashSet results = new HashSet();
@@ -130,8 +130,8 @@
         
         // make sure we get the results we need
         assertEquals( "returned size of results", 2, results.size() );
-        assertTrue( "contains cn=Tori Amos,ou=system", results.contains( "cn=Tori Amos,ou=system"
) );
-        assertTrue( "contains cn=Kate Bush,ou=system", results.contains( "cn=Kate Bush,ou=system"
) );
+        assertTrue( "contains cn=Tori Amos", results.contains( "cn=Tori Amos" ) );
+        assertTrue( "contains cn=Kate Bush", results.contains( "cn=Kate Bush" ) );
     }
 
 



Mime
View raw message