directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r955521 - in /directory/apacheds/trunk/server-integ/src/test/java: ./ org/apache/directory/server/operations/add/ org/apache/directory/server/operations/bind/ org/apache/directory/server/operations/modify/ org/apache/directory/server/operat...
Date Thu, 17 Jun 2010 09:23:39 GMT
Author: elecharny
Date: Thu Jun 17 09:23:37 2010
New Revision: 955521

URL: http://svn.apache.org/viewvc?rev=955521&view=rev
Log:
Supressed some warnings

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/MultiThreadedTest.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/MiscBindIT.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyMultipleChangesIT.java
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchMoveAndRenameIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/MultiThreadedTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/MultiThreadedTest.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/MultiThreadedTest.java (original)
+++ directory/apacheds/trunk/server-integ/src/test/java/MultiThreadedTest.java Thu Jun 17
09:23:37 2010
@@ -71,8 +71,6 @@ public class MultiThreadedTest extends T
             hMap.put("data", "dsfdfd");
 
             // authenticate user
-            int delay = 1;
-
             for (int i = 0; i < 100000; i++) {
                 if ( i % 100 == 0 )
                 {

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/add/AddIT.java
Thu Jun 17 09:23:37 2010
@@ -1213,24 +1213,6 @@ public class AddIT extends AbstractLdapT
     }
     
     
-    private UUID getUUIDFromBytes( byte[] data ) 
-    {
-        long msb = 0;
-        long lsb = 0;
-        for (int i=0; i<8; i++)
-        {
-            msb = (msb << 8) | (data[i] & 0xff);
-        }
-        
-        for (int i=8; i<16; i++)
-        {
-            lsb = (lsb << 8) | (data[i] & 0xff);
-        }
-        
-        return new UUID( msb, lsb );
-    }
-
-    
     @Test
     public void testAddEntryUUIDAndCSNAttributes() throws Exception
     {

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/MiscBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/MiscBindIT.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/MiscBindIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/MiscBindIT.java
Thu Jun 17 09:23:37 2010
@@ -45,7 +45,6 @@ import javax.naming.ldap.InitialLdapCont
 
 import netscape.ldap.LDAPConnection;
 import netscape.ldap.LDAPException;
-import netscape.ldap.LDAPSearchResults;
 import netscape.ldap.LDAPUrl;
 
 import org.apache.commons.lang.ArrayUtils;
@@ -158,7 +157,6 @@ public class MiscBindIT extends Abstract
         ldapServer.setAllowAnonymousAccess( false );
         
         // Use the SUN JNDI provider to hit server port and bind as anonymous
-        InitialDirContext ic = null;
         final Hashtable<String, Object> env = new Hashtable<String, Object>();
 
         env.put( Context.PROVIDER_URL, "ldap://localhost:" + ldapServer.getPort() + "/ou=system"
);
@@ -167,7 +165,7 @@ public class MiscBindIT extends Abstract
 
         try
         {
-            ic = new InitialDirContext( env );
+            new InitialDirContext( env );
             fail();
         }
         catch ( Exception e )
@@ -180,7 +178,7 @@ public class MiscBindIT extends Abstract
             // Use the netscape API as JNDI cannot be used to do a search without
             // first binding.
             LDAPUrl url = new LDAPUrl( "localhost", ldapServer.getPort(), "ou=system", new
String[]{"vendorName"}, 0, "(ObjectClass=*)" );
-            LDAPSearchResults results = LDAPConnection.search( url );
+            LDAPConnection.search( url );
 
             fail();
         }

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/bind/SimpleBindIT.java
Thu Jun 17 09:23:37 2010
@@ -263,12 +263,11 @@ public class SimpleBindIT extends Abstra
         env.put( Context.SECURITY_CREDENTIALS, "" );
 
         String[] attrIDs = { "*", "+" };
-        DirContext ctx = null;
         
         // Create the initial context
         try
         {
-            ctx = new InitialDirContext(env);
+            new InitialDirContext(env);
             fail();
         }
         catch ( NamingException ne )
@@ -316,7 +315,7 @@ public class SimpleBindIT extends Abstra
             // first binding.
             LDAPUrl url = new LDAPUrl( "localhost", ldapServer.getPort(), 
                 "uid=admin,ou=system", attrIDs, 0, "(ObjectClass=*)" );
-            LDAPSearchResults results = LDAPConnection.search( url );
+            LDAPConnection.search( url );
 
             fail();
         }

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyMultipleChangesIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyMultipleChangesIT.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyMultipleChangesIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyMultipleChangesIT.java
Thu Jun 17 09:23:37 2010
@@ -80,8 +80,6 @@ public class ModifyMultipleChangesIT  ex
 {
     private static final String BASE = "ou=system";
     private static final String RDN_TORI_AMOS = "cn=Tori Amos";
-    private static final String PERSON_DESCRIPTION = "an American singer-songwriter";
-    private static final String RDN_DEBBIE_HARRY = "cn=Debbie Harry";
 
     /**
      * Creation of required attributes of a person entry.

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchMoveAndRenameIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchMoveAndRenameIT.java?rev=955521&r1=955520&r2=955521&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchMoveAndRenameIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/search/ReferralSearchMoveAndRenameIT.java
Thu Jun 17 09:23:37 2010
@@ -185,7 +185,7 @@ public class ReferralSearchMoveAndRename
         {
             NamingEnumeration<SearchResult> results = ctx.search( "c=us,ou=system",
"(cn=alex karasulu)", controls );
             
-            SearchResult result = results.next();
+            results.next();
             fail( "Should fail here throwing a ReferralException" );
         }
         catch ( ReferralException re )



Mime
View raw message