directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r697454 - /directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java
Date Sun, 21 Sep 2008 08:03:54 GMT
Author: seelmann
Date: Sun Sep 21 01:03:53 2008
New Revision: 697454

URL: http://svn.apache.org/viewvc?rev=697454&view=rev
Log:
Added additional verifications for DIRSERVER-1269

Modified:
    directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java

Modified: directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java?rev=697454&r1=697453&r2=697454&view=diff
==============================================================================
--- directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java
(original)
+++ directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyAddIT.java
Sun Sep 21 01:03:53 2008
@@ -126,10 +126,13 @@
         Attributes attrs = new BasicAttributes( "telephoneNumber", newValue, true );
         ctx.modifyAttributes( RDN_TORI_AMOS, DirContext.ADD_ATTRIBUTE, attrs );
 
-        // Verify, that attribute value is added
+        // Verify, that
+        // - case of attribute description is correct
+        // - attribute value is added
         attrs = ctx.getAttributes( RDN_TORI_AMOS );
         Attribute attr = attrs.get( "telephoneNumber" );
         assertNotNull( attr );
+        assertEquals( "telephoneNumber", attr.getID() );
         assertTrue( attr.contains( newValue ) );
         assertEquals( 1, attr.size() );
     }
@@ -153,10 +156,13 @@
         attrs.put( attr );
         ctx.modifyAttributes( RDN_TORI_AMOS, DirContext.ADD_ATTRIBUTE, attrs );
 
-        // Verify, that attribute values are present
+        // Verify, that
+        // - case of attribute description is correct
+        // - attribute values are present
         attrs = ctx.getAttributes( RDN_TORI_AMOS );
         attr = attrs.get( "telephoneNumber" );
         assertNotNull( attr );
+        assertEquals( "telephoneNumber", attr.getID() );
         assertTrue( attr.contains( newValues[0] ) );
         assertTrue( attr.contains( newValues[1] ) );
         assertEquals( newValues.length, attr.size() );



Mime
View raw message