directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1066058 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java
Date Tue, 01 Feb 2011 15:03:02 GMT
Author: elecharny
Date: Tue Feb  1 15:03:02 2011
New Revision: 1066058

URL: http://svn.apache.org/viewvc?rev=1066058&view=rev
Log:
Fixing the last PSearch tests

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java?rev=1066058&r1=1066057&r2=1066058&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/PersistentSearchIT.java
Tue Feb  1 15:03:02 2011
@@ -589,7 +589,7 @@ public class PersistentSearchIT extends 
                 LOG.debug( "PSearchListener is ready and about to issue persistent search
request." );
                 list = ctx.search( "", "objectClass=*", null );
                 LOG.debug( "PSearchListener search request returned." );
-                EntryChangeDecorator ecControl = null;
+                EntryChange ecControl = null;
 
                 while ( list.hasMore() )
                 {
@@ -603,12 +603,13 @@ public class PersistentSearchIT extends 
                         
                         if ( controls != null )
                         {
-                            for ( javax.naming.ldap.Control control : controls )
+                            for ( javax.naming.ldap.Control jndiControl : controls )
                             {
-                                if ( control.getID().equals(
+                                if ( jndiControl.getID().equals(
                                     EntryChange.OID ) )
                                 {
-                                    ecControl.setValue( control.getEncodedValue() );
+                                    ecControl = (EntryChange)JndiUtils.fromJndiControl( codec,
jndiControl );
+                                    ((EntryChangeDecorator)ecControl).decode( jndiControl.getEncodedValue()
);
                                 }
                             }
                         }



Mime
View raw message