directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r451862 - /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/AddITest.java
Date Mon, 02 Oct 2006 03:11:30 GMT
Author: akarasulu
Date: Sun Oct  1 20:11:29 2006
New Revision: 451862

URL: http://svn.apache.org/viewvc?view=rev&rev=451862
Log:
fixing a slight test case failure that may result

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

Modified: directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/AddITest.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/AddITest.java?view=diff&rev=451862&r1=451861&r2=451862
==============================================================================
--- directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/AddITest.java
(original)
+++ directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/AddITest.java
Sun Oct  1 20:11:29 2006
@@ -21,7 +21,6 @@
 
 
 import javax.naming.directory.*;
-import javax.naming.Context;
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
 
@@ -465,7 +464,7 @@
         ne = containerCtx.search( "ou=bestFruit", "(objectClass=*)", controls );
         assertTrue( ne.hasMore() );
         sr = ( SearchResult ) ne.next();
-        assertEquals( "ldap://localhost:1024/ou=favorite,ou=Fruits,ou=system", sr.getName()
);
+        assertTrue( sr.getName().endsWith( "ou=favorite,ou=Fruits,ou=system" ) );
         assertFalse( ne.hasMore() );
         
         // Remove alias and entry



Mime
View raw message