directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r619808 - /directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
Date Fri, 08 Feb 2008 08:55:17 GMT
Author: pamarcelot
Date: Fri Feb  8 00:55:08 2008
New Revision: 619808

URL: http://svn.apache.org/viewvc?rev=619808&view=rev
Log:
Fixed test failure on JDK 1.6.

Modified:
    directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java

Modified: directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java?rev=619808&r1=619807&r2=619808&view=diff
==============================================================================
--- directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
(original)
+++ directory/studio/branches/studio-maven/studio-dsml-parser/src/test/java/org/apache/directory/studio/dsmlv2/searchResponse/searchResultEntry/SearchResultEntryTest.java
Fri Feb  8 00:55:08 2008
@@ -558,16 +558,14 @@
 
         NamingEnumeration ne = attributes.getAll();
 
-        Attribute attribute = ( Attribute ) ne.nextElement();
+        Attribute objectClassAttribute = attributes.get( "objectclass" );
 
-        assertEquals( "objectclass", attribute.getID() );
-
-        assertEquals( 1, attribute.size() );
+        assertEquals( 1, objectClassAttribute.size() );
 
         NamingEnumeration ne2 = null;
         try
         {
-            ne2 = attribute.getAll();
+            ne2 = objectClassAttribute.getAll();
         }
         catch ( NamingException e )
         {
@@ -578,16 +576,14 @@
 
         assertEquals( "top", value );
 
-        attribute = ( Attribute ) ne.nextElement();
-
-        assertEquals( "dc", attribute.getID() );
+        Attribute dcAttribute = attributes.get( "dc" );
 
-        assertEquals( 1, attribute.size() );
+        assertEquals( 1, dcAttribute.size() );
 
         ne2 = null;
         try
         {
-            ne2 = attribute.getAll();
+            ne2 = dcAttribute.getAll();
         }
         catch ( NamingException e )
         {



Mime
View raw message