Author: szoerner
Date: Wed Oct 3 11:07:12 2007
New Revision: 581672
URL: http://svn.apache.org/viewvc?rev=581672&view=rev
Log:
Changed from Hashtable to Properties in order to omit many warnings
Modified:
directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java?rev=581672&r1=581671&r2=581672&view=diff
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java (original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java Wed Oct 3 11:07:12 2007
@@ -35,6 +35,7 @@
import org.apache.directory.shared.ldap.util.EmptyEnumeration;
import java.util.Hashtable;
+import java.util.Properties;
import java.util.Set;
import java.util.HashSet;
import java.util.Collections;
@@ -208,7 +209,7 @@
{
// Use the SUN JNDI provider to hit server port and bind as anonymous
- final Hashtable env = new Hashtable();
+ final Properties env = new Properties();
env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/" );
env.put( Context.SECURITY_AUTHENTICATION, "none" );
@@ -241,7 +242,7 @@
{
// Use the SUN JNDI provider to hit server port and bind as anonymous
- final Hashtable env = new Hashtable();
+ final Properties env = new Properties();
env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/" );
env.put( Context.SECURITY_AUTHENTICATION, "none" );
@@ -274,7 +275,7 @@
{
// Use the SUN JNDI provider to hit server port and bind as anonymous
- final Hashtable env = new Hashtable();
+ final Properties env = new Properties();
env.put( Context.PROVIDER_URL, "ldap://localhost:" + port );
env.put( "java.naming.ldap.version", "3" );
@@ -310,7 +311,7 @@
*/
public void testUserAuthOnMixedCaseSuffix() throws Exception
{
- final Hashtable env = new Hashtable();
+ final Properties env = new Properties();
env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/dc=aPache,dc=org" );
env.put( "java.naming.ldap.version", "3" );
@@ -422,7 +423,7 @@
return new byte[0];
}
};
- final Hashtable env = new Hashtable();
+ final Properties env = new Properties();
env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/ou=system" );
env.put( "java.naming.ldap.version", "3" );