directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r415448 - /directory/trunks/apacheds/server-unit/src/test/resources/org/apache/directory/server/BackupUtilities.java
Date Mon, 19 Jun 2006 22:51:20 GMT
Author: ersiner
Date: Mon Jun 19 15:51:20 2006
New Revision: 415448

URL: http://svn.apache.org/viewvc?rev=415448&view=rev
Log:
Fixed LdapDN usage errors in test SP.

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

Modified: directory/trunks/apacheds/server-unit/src/test/resources/org/apache/directory/server/BackupUtilities.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-unit/src/test/resources/org/apache/directory/server/BackupUtilities.java?rev=415448&r1=415447&r2=415448&view=diff
==============================================================================
--- directory/trunks/apacheds/server-unit/src/test/resources/org/apache/directory/server/BackupUtilities.java
(original)
+++ directory/trunks/apacheds/server-unit/src/test/resources/org/apache/directory/server/BackupUtilities.java
Mon Jun 19 15:51:20 2006
@@ -13,7 +13,8 @@
         System.out.println( "User \"" + operationPrincipal + "\" has deleted entry \"" +
deletedEntryName + "\"" );
         System.out.println( "Entry content was: " + deletedEntry );
         LdapContext backupCtx = ( LdapContext ) ctx.lookup( "ou=backupContext,ou=system"
);
-        backupCtx.createSubcontext( deletedEntryName.get( 1 ), deletedEntry );
-        System.out.println( "Backed up deleted entry to \"" + ( ( LdapContext ) backupCtx.lookup(
deletedEntryName.get( 1 ) ) ).getNameInNamespace() + "\"" );
+        String deletedEntryRdn = deletedEntryName.get( deletedEntryName.size() - 1 );
+        backupCtx.createSubcontext( deletedEntryRdn, deletedEntry );
+        System.out.println( "Backed up deleted entry to \"" + ( ( LdapContext ) backupCtx.lookup(
deletedEntryRdn ) ).getNameInNamespace() + "\"" );
     }
 }



Mime
View raw message