directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r690035 - in /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap: message/SearchResponseEntryImplTest.java name/RdnTest.java
Date Thu, 28 Aug 2008 22:43:23 GMT
Author: elecharny
Date: Thu Aug 28 15:43:23 2008
New Revision: 690035

URL: http://svn.apache.org/viewvc?rev=690035&view=rev
Log:
Removed useless imports

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java?rev=690035&r1=690034&r2=690035&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
Thu Aug 28 15:43:23 2008
@@ -33,9 +33,6 @@
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.entry.client.DefaultClientAttribute;
 import org.apache.directory.shared.ldap.entry.client.DefaultClientEntry;
-import org.apache.directory.shared.ldap.message.MessageException;
-import org.apache.directory.shared.ldap.message.MessageTypeEnum;
-import org.apache.directory.shared.ldap.message.SearchResponseEntry;
 import org.apache.directory.shared.ldap.message.SearchResponseEntryImpl;
 import org.apache.directory.shared.ldap.name.LdapDN;
 

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java?rev=690035&r1=690034&r2=690035&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/RdnTest.java
Thu Aug 28 15:43:23 2008
@@ -35,8 +35,6 @@
 
 import javax.naming.InvalidNameException;
 import javax.naming.NamingException;
-import javax.naming.directory.Attribute;
-import javax.naming.directory.Attributes;
 
 import org.apache.directory.shared.ldap.util.StringTools;
 import org.junit.Test;
@@ -601,42 +599,6 @@
 
     /**
      * 
-     * test the ToAttributes method.
-     *
-     * @throws InvalidNameException
-     * @throws NamingException
-     */
-    @Test
-    public void testToAttributes() throws InvalidNameException, NamingException
-    {
-        Rdn rdn = new Rdn( " a = b + a = f + g = h + c = d " );
-
-        Attributes attributes = rdn.toAttributes();
-
-        assertNotNull( attributes.get( "a" ) );
-        assertNotNull( attributes.get( "g" ) );
-        assertNotNull( attributes.get( "c" ) );
-
-        Attribute attribute = attributes.get( "a" );
-
-        assertNotNull( attribute.get( 0 ) );
-        assertEquals( "b", attribute.get( 0 ) );
-
-        assertNotNull( attribute.get( 1 ) );
-        assertEquals( "f", attribute.get( 1 ) );
-
-        attribute = attributes.get( "g" );
-        assertNotNull( attribute.get( 0 ) );
-        assertEquals( "h", attribute.get( 0 ) );
-
-        attribute = attributes.get( "c" );
-        assertNotNull( attribute.get( 0 ) );
-        assertEquals( "d", attribute.get( 0 ) );
-    }
-
-
-    /**
-     * 
      * Test the getValue method.
      *
      * @throws InvalidNameException



Mime
View raw message