directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1554624 - in /directory/apacheds/trunk: core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java
Date Wed, 01 Jan 2014 14:30:30 GMT
Author: kayyagari
Date: Wed Jan  1 14:30:30 2014
New Revision: 1554624

URL: http://svn.apache.org/r1554624
Log:
o added DnFactory to the mock service
o updated test to set a DnFactory instance

Modified:
    directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java

Modified: directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java?rev=1554624&r1=1554623&r2=1554624&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java
(original)
+++ directory/apacheds/trunk/core-api/src/test/java/org/apache/directory/server/core/api/MockDirectoryService.java
Wed Jan  1 14:30:30 2014
@@ -60,6 +60,8 @@ public class MockDirectoryService implem
 {
     int count;
 
+    DnFactory dnFactory;
+    
     /** The schemaManager */
     SchemaManager schemaManager;
 
@@ -552,7 +554,7 @@ public class MockDirectoryService implem
      */
     public DnFactory getDnFactory()
     {
-        return null;
+        return dnFactory;
     }
 
 
@@ -561,6 +563,7 @@ public class MockDirectoryService implem
      */
     public void setDnFactory( DnFactory dnFactory )
     {
+        this.dnFactory = dnFactory;
     }
 
 

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java?rev=1554624&r1=1554623&r2=1554624&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientInitialRefreshIT.java
Wed Jan  1 14:30:30 2014
@@ -47,6 +47,7 @@ import org.apache.directory.server.core.
 import org.apache.directory.server.core.api.MockDirectoryService;
 import org.apache.directory.server.core.factory.DSAnnotationProcessor;
 import org.apache.directory.server.core.integ.FrameworkRunner;
+import org.apache.directory.server.core.shared.DefaultDnFactory;
 import org.apache.directory.server.factory.ServerAnnotationProcessor;
 import org.apache.directory.server.ldap.LdapServer;
 import org.apache.directory.server.ldap.replication.SyncReplConfiguration;
@@ -301,6 +302,8 @@ public class ClientInitialRefreshIT
                     DirectoryService directoryService = new MockDirectoryService();
                     directoryService.setSchemaManager( schemaManager );
                     ( ( MockSyncReplConsumer ) syncreplClient ).init( directoryService );
+                    
+                    directoryService.setDnFactory( new DefaultDnFactory( schemaManager, null
) );
                     syncreplClient.connect( true );
                     syncreplClient.startSync();
                 }



Mime
View raw message