directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r151084 - in incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server: jndi/FrontendPassthruTest.java jndi/ImportConfirmationTest.java jndi/ibs/OperationalAttributeServiceTest.java jndi/ibs/ServerExceptionServiceTest.java prefs/ServerPreferencesFactoryTest.java prefs/ServerSystemPreferencesTest.java
Date Thu, 03 Feb 2005 00:04:36 GMT
Author: erodriguez
Date: Wed Feb  2 16:04:34 2005
New Revision: 151084

URL: http://svn.apache.org/viewcvs?view=rev&rev=151084
Log:
Prefs tests had duplicated or unused imports.

Modified:
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/FrontendPassthruTest.java
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ImportConfirmationTest.java
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/OperationalAttributeServiceTest.java
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/ServerExceptionServiceTest.java
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerPreferencesFactoryTest.java
    incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerSystemPreferencesTest.java

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/FrontendPassthruTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/FrontendPassthruTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/FrontendPassthruTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/FrontendPassthruTest.java
Wed Feb  2 16:04:34 2005
@@ -21,8 +21,6 @@
 
 import org.apache.apseda.DefaultFrontend;
 import org.apache.apseda.DefaultFrontendFactory;
-import org.apache.apseda.DefaultFrontendFactory;
-import org.apache.apseda.DefaultFrontend;
 import org.apache.ldap.server.AbstractServerTest;
 
 

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ImportConfirmationTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ImportConfirmationTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ImportConfirmationTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ImportConfirmationTest.java
Wed Feb  2 16:04:34 2005
@@ -50,7 +50,7 @@
      */
     public void testConfirmImportedEntries() throws Exception
     {
-        InputStream in = ( InputStream ) getClass().getResourceAsStream( "system.ldif" );
+        InputStream in = getClass().getResourceAsStream( "system.ldif" );
         LdifParser parser = new LdifParserImpl();
 
         try

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/OperationalAttributeServiceTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/OperationalAttributeServiceTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/OperationalAttributeServiceTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/OperationalAttributeServiceTest.java
Wed Feb  2 16:04:34 2005
@@ -19,11 +19,16 @@
 
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
-import javax.naming.directory.*;
+import javax.naming.directory.Attribute;
+import javax.naming.directory.Attributes;
+import javax.naming.directory.BasicAttribute;
+import javax.naming.directory.BasicAttributes;
+import javax.naming.directory.DirContext;
+import javax.naming.directory.SearchControls;
+import javax.naming.directory.SearchResult;
 
 import org.apache.ldap.common.message.DerefAliasesEnum;
 import org.apache.ldap.server.AbstractServerTest;
-import org.apache.ldap.server.AbstractServerTest;
 
 
 /**
@@ -73,7 +78,7 @@
         sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP,
                 DerefAliasesEnum.NEVERDEREFALIASES_NAME );
         NamingEnumeration list;
-        list = ( NamingEnumeration ) sysRoot.search( "", "(ou=testing00)", ctls );
+        list = sysRoot.search( "", "(ou=testing00)", ctls );
         SearchResult result = ( SearchResult ) list.next();
         list.close();
 

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/ServerExceptionServiceTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/ServerExceptionServiceTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/ServerExceptionServiceTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/jndi/ibs/ServerExceptionServiceTest.java
Wed Feb  2 16:04:34 2005
@@ -20,7 +20,14 @@
 import javax.naming.Context;
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
-import javax.naming.directory.*;
+import javax.naming.directory.Attribute;
+import javax.naming.directory.Attributes;
+import javax.naming.directory.BasicAttribute;
+import javax.naming.directory.BasicAttributes;
+import javax.naming.directory.DirContext;
+import javax.naming.directory.ModificationItem;
+import javax.naming.directory.SearchControls;
+import javax.naming.directory.SearchResult;
 import javax.naming.ldap.LdapContext;
 
 import org.apache.ldap.common.exception.LdapContextNotEmptyException;
@@ -28,7 +35,6 @@
 import org.apache.ldap.common.exception.LdapNameNotFoundException;
 import org.apache.ldap.common.exception.LdapNamingException;
 import org.apache.ldap.common.message.ResultCodeEnum;
-import org.apache.ldap.server.AbstractServerTest;
 import org.apache.ldap.server.AbstractServerTest;
 
 

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerPreferencesFactoryTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerPreferencesFactoryTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerPreferencesFactoryTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerPreferencesFactoryTest.java
Wed Feb  2 16:04:34 2005
@@ -17,22 +17,9 @@
 package org.apache.ldap.server.prefs;
 
 
-import java.util.Hashtable;
 import java.util.prefs.Preferences;
-import java.io.File;
-import java.io.IOException;
-import javax.naming.ldap.LdapContext;
-import javax.naming.ldap.InitialLdapContext;
-import javax.naming.NamingException;
-import javax.naming.Context;
-import javax.naming.InitialContext;
 
-import junit.framework.TestCase;
-import org.apache.ldap.server.jndi.EnvKeys;
 import org.apache.ldap.server.AbstractServerTest;
-import org.apache.ldap.server.AbstractServerTest;
-import org.apache.apseda.listener.AvailablePortFinder;
-import org.apache.commons.io.FileUtils;
 
 
 /**

Modified: incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerSystemPreferencesTest.java
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerSystemPreferencesTest.java?view=diff&r1=151083&r2=151084
==============================================================================
--- incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerSystemPreferencesTest.java
(original)
+++ incubator/directory/apacheds/trunk/core/src/test/org/apache/ldap/server/prefs/ServerSystemPreferencesTest.java
Wed Feb  2 16:04:34 2005
@@ -17,10 +17,9 @@
 package org.apache.ldap.server.prefs;
 
 
-import java.util.prefs.Preferences;
 import java.util.prefs.BackingStoreException;
+import java.util.prefs.Preferences;
 
-import org.apache.ldap.server.AbstractServerTest;
 import org.apache.ldap.server.AbstractServerTest;
 
 



Mime
View raw message