You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/12/08 18:02:33 UTC

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

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 ) );
             }
         }