directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r660381 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Date Tue, 27 May 2008 05:09:13 GMT
Author: akarasulu
Date: Mon May 26 22:09:08 2008
New Revision: 660381

URL: http://svn.apache.org/viewvc?rev=660381&view=rev
Log:
who cares what the implementation of the returnd enumeration is - why bother testing that?

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java?rev=660381&r1=660380&r2=660381&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/MiscTest.java
Mon May 26 22:09:08 2008
@@ -360,31 +360,25 @@
         SearchControls cons = new SearchControls();
         NamingEnumeration<SearchResult> e = sysRoot.search( "", "(bogusAttribute=abc123)",
cons );
         assertNotNull( e );
-        assertEquals( e.getClass(), EmptyEnumeration.class );
         
         e = sysRoot.search( "", "(!(bogusAttribute=abc123))", cons );
         assertNotNull( e );
         assertFalse( e.hasMore() );
-        assertEquals( e.getClass(), EmptyEnumeration.class );
         
         e = sysRoot.search( "", "(|(bogusAttribute=abc123)(bogusAttribute=abc123))", cons
);
         assertNotNull( e );
         assertFalse( e.hasMore() );
-        assertEquals( e.getClass(), EmptyEnumeration.class );
         
         e = sysRoot.search( "", "(|(bogusAttribute=abc123)(ou=abc123))", cons );
         assertNotNull( e );
         assertFalse( e.hasMore() );
-        assertFalse( e.getClass().equals( EmptyEnumeration.class ) );
 
         e = sysRoot.search( "", "(OBJECTclass=*)", cons );
         assertNotNull( e );
         assertTrue( e.hasMore() );
-        assertFalse( e.getClass().equals( EmptyEnumeration.class ) );
 
         e = sysRoot.search( "", "(objectclass=*)", cons );
         assertNotNull( e );
-        assertFalse( e.getClass().equals( EmptyEnumeration.class ) );
     }
 
 



Mime
View raw message