directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r545029 - /directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/
Date Thu, 07 Jun 2007 02:55:51 GMT
Author: erodriguez
Date: Wed Jun  6 19:55:50 2007
New Revision: 545029

URL: http://svn.apache.org/viewvc?view=rev&rev=545029
Log:
Warnings clean-up in server-unit.  Mostly Javadocs, some generics.

Modified:
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddITest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddingEntriesWithSpecialCharactersInRDNTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BadDnTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BinarySearchTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ChangeListener.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MatchingRuleCompareTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyReplaceITest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralITest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/StoredProcedureTest.java
    directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/UnknownExtendedOperationTest.java

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddITest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddITest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddITest.java
Wed Jun  6 19:55:50 2007
@@ -186,6 +186,8 @@
 
     /**
      * Try to add entry with required attribute missing.
+     * 
+     * @throws NamingException 
      */
     public void testAddWithMissingRequiredAttributes() throws NamingException
     {
@@ -220,6 +222,8 @@
      * Testcase to demonstrate DIRSERVER-643 ("Netscape SDK: Adding an entry with
      * two description attributes does not combine values."). Uses Sun ONE Directory
      * SDK for Java 4.1 , or comparable (Netscape, Mozilla).
+     * 
+     * @throws LDAPException 
      */
     public void testAddEntryWithTwoDescriptions() throws LDAPException
     {
@@ -260,6 +264,8 @@
      * Testcase to demonstrate DIRSERVER-643 ("Netscape SDK: Adding an entry with
      * two description attributes does not combine values."). Uses Sun ONE Directory
      * SDK for Java 4.1 , or comparable (Netscape, Mozilla).
+     * 
+     * @throws LDAPException 
      */
     public void testAddEntryWithTwoDescriptionsVariant() throws LDAPException
     {
@@ -301,6 +307,8 @@
      * Testcase to demonstrate DIRSERVER-643 ("Netscape SDK: Adding an entry with
      * two description attributes does not combine values."). Uses Sun ONE Directory
      * SDK for Java 4.1 , or comparable (Netscape, Mozilla).
+     * 
+     * @throws LDAPException 
      */
     public void testAddEntryWithTwoDescriptionsSecondVariant() throws LDAPException
     {
@@ -339,6 +347,8 @@
     
     /**
      * Try to add entry with invalid number of values for a single-valued atribute
+     * 
+     * @throws NamingException 
      * @see <a href="http://issues.apache.org/jira/browse/DIRSERVER-614">DIRSERVER-614</a>
      */
     public void testAddWithInvalidNumberOfAttributeValues() throws NamingException
@@ -370,6 +380,8 @@
 
     /**
      * Try to add entry and an alias to it. Afterwards, remove it.
+     * 
+     * @throws NamingException 
      */
     public void testAddAlias() throws NamingException
     {
@@ -406,10 +418,11 @@
     /**
      * Try to add entry and an alias to it. Afterwards, remove it. This version
      * cretes a container entry before the operations.
+     * 
+     * @throws NamingException 
      */
     public void testAddAliasInContainer() throws NamingException
     {
-
         // Create container
         Attributes container = new AttributesImpl();
         Attribute containerOcls = new AttributeImpl( "objectclass" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddingEntriesWithSpecialCharactersInRDNTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddingEntriesWithSpecialCharactersInRDNTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddingEntriesWithSpecialCharactersInRDNTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/AddingEntriesWithSpecialCharactersInRDNTest.java
Wed Jun  6 19:55:50 2007
@@ -53,7 +53,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );
@@ -99,6 +99,8 @@
 
    /**
     * adding an entry with hash sign (#) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithHashRdn() throws NamingException {
        Attributes attrs = getPersonAttributes("Bush", "Kate#Bush");
@@ -122,6 +124,8 @@
 
    /**
     * adding an entry with comma sign (,) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithCommaInRdn() throws NamingException {
 
@@ -200,6 +204,8 @@
 */
    /**
     * adding an entry with greater sign (>) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithGreaterSignInRdn() throws NamingException {
 
@@ -225,6 +231,8 @@
 
    /**
     * adding an entry with less sign (<) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithLessSignInRdn() throws NamingException {
 
@@ -250,6 +258,8 @@
 
    /**
     * adding an entry with semicolon (;) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithSemicolonInRdn() throws NamingException {
 
@@ -275,6 +285,8 @@
 
    /**
     * adding an entry with equals sign (=) in RDN.
+    * 
+    * @throws NamingException 
     */
    public void testAddingWithEqualsInRdn() throws NamingException {
 

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BadDnTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BadDnTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BadDnTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BadDnTest.java
Wed Jun  6 19:55:50 2007
@@ -39,10 +39,15 @@
 {
     /**
      * Bind as a user.
+     * 
+     * @param bindDn 
+     * @param password 
+     * @return The {@link LdapContext} for the bound user. 
+     * @throws Exception 
      */
     public LdapContext bind( String bindDn, String password ) throws Exception
     {
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", bindDn );
@@ -58,6 +63,8 @@
     /**
      * Test with bindDn which is not even found under any namingContext of the
      * server.
+     * 
+     * @throws Exception 
      */
     public void testBadBindDnNotInContext() throws Exception
     {
@@ -88,6 +95,8 @@
 
     /**
      * Test with bindDn that is under a naming context but points to non-existant user.
+     * 
+     * @throws Exception 
      */
     public void testBadBindDnInContext() throws Exception
     {

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BinarySearchTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BinarySearchTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BinarySearchTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/BinarySearchTest.java
Wed Jun  6 19:55:50 2007
@@ -71,7 +71,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ChangeListener.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ChangeListener.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ChangeListener.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ChangeListener.java
Wed Jun  6 19:55:50 2007
@@ -45,7 +45,7 @@
 {
     public static void main( String[] args ) throws Exception
     {
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:10389/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
Wed Jun  6 19:55:50 2007
@@ -71,7 +71,7 @@
      * Try to delete an entry with invalid DN. Expected result code is 32
      * (NO_SUCH_OBJECT) or 34 (INVALID_DN_SYNTAX).
      */
-    public void testDeleteWithIllegalName() throws LDAPException {
+    public void testDeleteWithIllegalName() {
         try {
             con.delete("This is an illegal name" + "," + BASE);
             fail("deletion should fail");

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MatchingRuleCompareTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MatchingRuleCompareTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MatchingRuleCompareTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/MatchingRuleCompareTest.java
Wed Jun  6 19:55:50 2007
@@ -93,7 +93,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

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?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- 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 Jun  6 19:55:50 2007
@@ -154,7 +154,7 @@
     {
         // Use the SUN JNDI provider to hit server port and bind as anonymous
         InitialDirContext ic = null;
-        final Hashtable env = new Hashtable();
+        final Hashtable<String, Object> env = new Hashtable<String, Object>();
 
         env.put( Context.PROVIDER_URL, "ldap://localhost:" + port + "/ou=system" );
         env.put( Context.SECURITY_AUTHENTICATION, "none" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
Wed Jun  6 19:55:50 2007
@@ -85,7 +85,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );
@@ -372,7 +372,7 @@
      */
     public void testAddUnexistingAttribute() throws NamingException
     {
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );
@@ -429,6 +429,8 @@
     /**
      * Create a person entry and perform a modify op, in which
      * we modify an attribute two times.
+     * 
+     * @throws NamingException 
      */
     public void testAttributeValueMultiMofificationDIRSERVER_636() throws NamingException
{
 
@@ -480,6 +482,8 @@
 
     /**
      * Try to add subschemaSubentry attribute to an entry
+     * 
+     * @throws NamingException 
      */
     public void testModifyOperationalAttributeAdd() throws NamingException
     {
@@ -509,6 +513,8 @@
      * attribute which is part of the DN. This is not allowed.
      * 
      * A JIRA has been created for this bug : DIRSERVER_687
+     * 
+     * @throws NamingException 
      */
      public void testDNAttributeMemberMofificationDIRSERVER_687() throws NamingException
{
 
@@ -544,6 +550,8 @@
     
     /**
      * Try to modify an entry adding invalid number of values for a single-valued atribute
+     * 
+     * @throws NamingException 
      * @see <a href="http://issues.apache.org/jira/browse/DIRSERVER-614">DIRSERVER-614</a>
      */
     public void testModifyAddWithInvalidNumberOfAttributeValues() throws NamingException

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRdnTest.java
Wed Jun  6 19:55:50 2007
@@ -73,7 +73,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );
@@ -99,7 +99,7 @@
     /**
      * Just a little test to check wether opening the connection succeeds.
      */
-    public void testSetUpTearDown() throws NamingException
+    public void testSetUpTearDown()
     {
         assertNotNull( ctx );
     }

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyRemoveTest.java
Wed Jun  6 19:55:50 2007
@@ -54,7 +54,7 @@
 
     private LdapContext ctx = null;
 
-    public static final String RDN = "cn=Tori Amos";
+    private static final String RDN = "cn=Tori Amos";
 
 
     /**
@@ -132,6 +132,8 @@
     /**
      * Just a little test to check wether opening the connection and creation of
      * the person succeeds succeeds.
+     * 
+     * @throws NamingException 
      */
     public void testSetUpTearDown() throws NamingException
     {
@@ -340,6 +342,8 @@
 
     /**
      * Create a person entry and try to remove an attribute value
+     * 
+     * @throws NamingException 
      */
     public void testReplaceNonExistingAttribute() throws NamingException
     {
@@ -383,6 +387,8 @@
     /**
      * Create a person entry and try to remove an attribute value from the RDN
      * by Replacement
+     * 
+     * @throws NamingException 
      */
     public void testReplaceRdnByEmptyValueAttribute() throws NamingException
     {
@@ -413,6 +419,8 @@
 
     /**
      * Create a person entry and try to remove an attribute from the RDN
+     * 
+     * @throws NamingException 
      */
     public void testRemoveRdnAttribute() throws NamingException
     {
@@ -443,6 +451,8 @@
 
     /**
      * Create a person entry and try to remove an attribute from the RDN
+     * 
+     * @throws NamingException 
      */
     public void testRemoveRdnAttributeValue() throws NamingException
     {
@@ -472,6 +482,8 @@
     
     /**
      * Create a person entry and try to remove objectClass attribute
+     * 
+     * @throws NamingException 
      */
     public void testDeleteOclAttrWithTopPersonOrganizationalpersonInetorgperson() throws
NamingException {
 
@@ -499,6 +511,8 @@
     /**
      * Create a person entry and try to remove objectClass attribute. A variant
      * which works.
+     * 
+     * @throws NamingException 
      */
     public void testDeleteOclAttrWithTopPersonOrganizationalpersonInetorgpersonVariant()
throws NamingException {
 

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyReplaceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyReplaceITest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyReplaceITest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyReplaceITest.java
Wed Jun  6 19:55:50 2007
@@ -67,7 +67,7 @@
     {
         super.setUp();
         
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( Context.PROVIDER_URL, "ldap://localhost:" + super.port + "/ou=system" );
         env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
@@ -87,6 +87,8 @@
 
     /**
      * Create a person entry and try to remove a not present attribute
+     * 
+     * @throws NamingException 
      */
     public void testReplaceNotPresentAttribute() throws NamingException
     {
@@ -121,6 +123,8 @@
 
     /**
      * Create a person entry and try to remove a non existing attribute
+     * 
+     * @throws NamingException 
      */
     public void testReplaceNonExistingAttribute() throws NamingException
     {

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/PersistentSearchTest.java
Wed Jun  6 19:55:50 2007
@@ -89,7 +89,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralITest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralITest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralITest.java
Wed Jun  6 19:55:50 2007
@@ -105,7 +105,7 @@
      */
     private LdapContext getSystemRoot() throws NamingException
     {
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ReferralTest.java
Wed Jun  6 19:55:50 2007
@@ -99,7 +99,7 @@
      */
     private LdapContext getSystemRoot() throws NamingException
     {
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/StoredProcedureTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/StoredProcedureTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/StoredProcedureTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/StoredProcedureTest.java
Wed Jun  6 19:55:50 2007
@@ -53,7 +53,7 @@
 
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/UnknownExtendedOperationTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/UnknownExtendedOperationTest.java?view=diff&rev=545029&r1=545028&r2=545029
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/UnknownExtendedOperationTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/UnknownExtendedOperationTest.java
Wed Jun  6 19:55:50 2007
@@ -51,7 +51,7 @@
     {
         super.setUp();
 
-        Hashtable env = new Hashtable();
+        Hashtable<String, Object> env = new Hashtable<String, Object>();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://localhost:" + port + "/ou=system" );
         env.put( "java.naming.security.principal", "uid=admin,ou=system" );
@@ -77,6 +77,8 @@
     /**
      * Calls an extended exception, which does not exist. Expected behaviour is
      * a CommunicationException.
+     * 
+     * @throws NamingException 
      */
     public void testUnknownExtendedOperation() throws NamingException
     {



Mime
View raw message