directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r502476 - in /directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core: collective/CollectiveAttributeServiceITest.java exception/ExceptionServiceITest.java
Date Fri, 02 Feb 2007 04:18:03 GMT
Author: akarasulu
Date: Thu Feb  1 20:18:03 2007
New Revision: 502476

URL: http://svn.apache.org/viewvc?view=rev&rev=502476
Log:
clean up things in core-unit so we do not get complaints in eclipse

Modified:
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceITest.java
    directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceITest.java

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceITest.java?view=diff&rev=502476&r1=502475&r2=502476
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceITest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/collective/CollectiveAttributeServiceITest.java
Thu Feb  1 20:18:03 2007
@@ -41,7 +41,7 @@
  * Test cases for the collective attribute service.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev:$
+ * @version $Rev$
  */
 public class CollectiveAttributeServiceITest extends AbstractAdminTestCase
 {
@@ -147,9 +147,9 @@
     }
     
     
-    public Map getAllEntriesCollectiveAttributesOnly() throws NamingException
+    public Map<String, Attributes> getAllEntriesCollectiveAttributesOnly() throws NamingException
     {
-        Map resultMap = new HashMap();
+        Map<String, Attributes> resultMap = new HashMap<String, Attributes>();
         SearchControls controls = new SearchControls();
         controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
         controls.setReturningAttributes( new String[]
@@ -310,7 +310,7 @@
         // ------------------------------------------------------------------
         
         entries = getAllEntriesCollectiveAttributesOnly();
-        attributes = ( Attributes ) entries.get( "ou=services,ou=configuration,ou=system"
);
+        attributes = entries.get( "ou=services,ou=configuration,ou=system" );
         c_ou = attributes.get( "c-ou" );
         assertNotNull( "a collective c-ou attribute should be present", c_ou );
         assertEquals( "configuration", c_ou.get() );   

Modified: directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceITest.java?view=diff&rev=502476&r1=502475&r2=502476
==============================================================================
--- directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceITest.java
(original)
+++ directory/apacheds/trunk/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceITest.java
Thu Feb  1 20:18:03 2007
@@ -20,7 +20,6 @@
 package org.apache.directory.server.core.exception;
 
 
-import javax.naming.Context;
 import javax.naming.NamingEnumeration;
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;



Mime
View raw message