You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/06/18 13:34:55 UTC

svn commit: r955948 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java

Author: elecharny
Date: Fri Jun 18 11:34:55 2010
New Revision: 955948

URL: http://svn.apache.org/viewvc?rev=955948&view=rev
Log:
Removed a wrong test

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.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=955948&r1=955947&r2=955948&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 Fri Jun 18 11:34:55 2010
@@ -20,6 +20,9 @@
 package org.apache.directory.shared.ldap.message;
 
 
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
 import org.apache.directory.junit.tools.Concurrent;
 import org.apache.directory.junit.tools.ConcurrentJunitRunner;
 import org.apache.directory.shared.ldap.entry.DefaultEntry;
@@ -27,15 +30,10 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
 import org.apache.directory.shared.ldap.exception.LdapException;
-import org.apache.directory.shared.ldap.message.SearchResponseEntryImpl;
 import org.apache.directory.shared.ldap.name.DN;
-import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
-
 
 /**
  * Test cases for the methods of the SearchResponseEntryImpl class.
@@ -154,25 +152,4 @@ public class SearchResponseEntryImplTest
         assertFalse( "different object names should not be equal", resp1.equals( resp0 ) );
         assertFalse( "different object names should not be equal", resp0.equals( resp1 ) );
     }
-
-
-    /**
-     * Tests for inequality when the attributes are not the same.
-     */
-    @Ignore
-    @Test
-    public void testNotEqualDiffAttributes() throws LdapException
-    {
-        SearchResponseEntryImpl resp0 = new SearchResponseEntryImpl( 5 );
-        resp0.setEntry( getEntry() );
-        resp0.getEntry().put( "abc", "123" );
-        resp0.setObjectName( new DN( "dc=apache,dc=org" ) );
-
-        SearchResponseEntryImpl resp1 = new SearchResponseEntryImpl( 5 );
-        resp1.setEntry( getEntry() );
-        resp1.setObjectName( new DN( "dc=apache,dc=org" ) );
-
-        assertFalse( "different attributes should not be equal", resp1.equals( resp0 ) );
-        assertFalse( "different attributes should not be equal", resp0.equals( resp1 ) );
-    }
 }