directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ersi...@apache.org
Subject svn commit: r415033 - in /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger: BackupUtilities.java DefaulTriggerServiceTest.java
Date Sat, 17 Jun 2006 17:34:49 GMT
Author: ersiner
Date: Sat Jun 17 10:34:49 2006
New Revision: 415033

URL: http://svn.apache.org/viewvc?rev=415033&view=rev
Log:
Fixed SP loading issues.

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

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/BackupUtilities.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/BackupUtilities.java?rev=415033&r1=415032&r2=415033&view=diff
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/BackupUtilities.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/BackupUtilities.java
Sat Jun 17 10:34:49 2006
@@ -5,8 +5,6 @@
 import javax.naming.directory.Attributes;
 import javax.naming.ldap.LdapContext;
 
-import org.apache.directory.server.core.jndi.ServerLdapContext;
-
 
 public class BackupUtilities
 {
@@ -14,8 +12,7 @@
     {
         System.out.println( "User \"" + operationPrincipal + "\" has deleted entry \"" +
deletedEntryName + "\"" );
         System.out.println( "Entry content was: " + deletedEntry );
-        
-        ServerLdapContext backupCtx = ( ServerLdapContext ) ctx.lookup( "ou=backupContext,ou=system"
);
+        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() + "\"" );
     }

Modified: directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java?rev=415033&r1=415032&r2=415033&view=diff
==============================================================================
--- directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
(original)
+++ directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/trigger/DefaulTriggerServiceTest.java
Sat Jun 17 10:34:49 2006
@@ -57,7 +57,7 @@
             throw ne;
         }
         
-        String fullClassName = getClass().getPackage() + "." + spClass;
+        String fullClassName = getClass().getPackage().getName() + "." + spClass;
         
         Attributes attributes = new BasicAttributes( "objectClass", "top", true );
         attributes.get( "objectClass" ).add( "javaClass" );



Mime
View raw message