You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/05/31 16:00:57 UTC

svn commit: r949748 - /directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java

Author: kayyagari
Date: Mon May 31 14:00:57 2010
New Revision: 949748

URL: http://svn.apache.org/viewvc?rev=949748&view=rev
Log:
added setters and getters to satisfy the requirement stated in DIRSERVER-1424

Modified:
    directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java

Modified: directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java?rev=949748&r1=949747&r2=949748&view=diff
==============================================================================
--- directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java (original)
+++ directory/apacheds/trunk/test-framework/src/main/java/org/apache/directory/server/core/integ/AbstractLdapTestUnit.java Mon May 31 14:00:57 2010
@@ -19,6 +19,7 @@
  */
 package org.apache.directory.server.core.integ;
 
+
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.kerberos.kdc.KdcServer;
 import org.apache.directory.server.ldap.LdapServer;
@@ -40,7 +41,55 @@ public abstract class AbstractLdapTestUn
 
     /** The used KdcServer instance */
     public static KdcServer kdcServer;
-    
+
     /** A flag set if the test is run in a suite */
     public static boolean isRunInSuite;
+
+
+    public static DirectoryService getService()
+    {
+        return service;
+    }
+
+
+    public static void setService( DirectoryService service )
+    {
+        AbstractLdapTestUnit.service = service;
+    }
+
+
+    public static LdapServer getLdapServer()
+    {
+        return ldapServer;
+    }
+
+
+    public static void setLdapServer( LdapServer ldapServer )
+    {
+        AbstractLdapTestUnit.ldapServer = ldapServer;
+    }
+
+
+    public static KdcServer getKdcServer()
+    {
+        return kdcServer;
+    }
+
+
+    public static void setKdcServer( KdcServer kdcServer )
+    {
+        AbstractLdapTestUnit.kdcServer = kdcServer;
+    }
+
+
+    public static boolean isRunInSuite()
+    {
+        return isRunInSuite;
+    }
+
+
+    public static void setRunInSuite( boolean isRunInSuite )
+    {
+        AbstractLdapTestUnit.isRunInSuite = isRunInSuite;
+    }
 }