directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1043523 - /directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java
Date Wed, 08 Dec 2010 17:02:33 GMT
Author: pamarcelot
Date: Wed Dec  8 17:02:32 2010
New Revision: 1043523

URL: http://svn.apache.org/viewvc?rev=1043523&view=rev
Log:
Previous version only checked the existence of the same attribute in the generated entry.
Now, we also compare the values of this attribute to make sure their identical. 

Modified:
    directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java

Modified: directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java?rev=1043523&r1=1043522&r2=1043523&view=diff
==============================================================================
--- directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java
(original)
+++ directory/apacheds/branches/server-config-annotations/server-config/src/test/java/org/apache/directory/server/config/ConfigWriterTest.java
Wed Dec  8 17:02:32 2010
@@ -161,7 +161,11 @@ public class ConfigWriterTest
             Iterator<EntryAttribute> attributesIterator = originalConfigEntry.iterator();
             while ( attributesIterator.hasNext() )
             {
-                assertTrue( generatedConfigEntry.contains( ( EntryAttribute ) attributesIterator.next()
) );
+                EntryAttribute originalEntryAttribute = ( EntryAttribute ) attributesIterator.next();
+                assertTrue( generatedConfigEntry.contains( originalEntryAttribute ) );
+
+                EntryAttribute generatedEntryAttribute = generatedConfigEntry.get( originalEntryAttribute.getId()
);
+                assertTrue( originalEntryAttribute.equals( generatedEntryAttribute ) );
             }
         }
 



Mime
View raw message