directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: rev 6828 - incubator/directory/naming/trunk/core/src/test/org/apache/naming/resources
Date Mon, 23 Feb 2004 03:43:06 GMT
Author: psteitz
Date: Sun Feb 22 19:43:06 2004
New Revision: 6828

Modified:
   incubator/directory/naming/trunk/core/src/test/org/apache/naming/resources/AbstractDirContextTest.java
Log:
Fixed attribute modification type error.

Modified: incubator/directory/naming/trunk/core/src/test/org/apache/naming/resources/AbstractDirContextTest.java
==============================================================================
--- incubator/directory/naming/trunk/core/src/test/org/apache/naming/resources/AbstractDirContextTest.java
(original)
+++ incubator/directory/naming/trunk/core/src/test/org/apache/naming/resources/AbstractDirContextTest.java
Sun Feb 22 19:43:06 2004
@@ -288,14 +288,14 @@
       
       if(replaceAttributeName() != null) {
           Attribute replaceModification = new BasicAttribute(replaceAttributeName(), replaceAttributeValue());
-          modifications[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, replaceModification);
    
+          modifications[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, replaceModification);
    
           context.modifyAttributes("", modifications);
           verifyAttribute(context, "", replaceAttributeName(), replaceAttributeValue());
       }
       
       if(removeAttributeName() != null) {
           Attribute removeModification = new BasicAttribute(removeAttributeName());
-          modifications[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, removeModification);
    
+          modifications[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE, removeModification);
    
           context.modifyAttributes("", modifications);
           verifyAttributeMissing(context, "", removeAttributeName());
       }

Mime
View raw message