Skip to content

Commit 308f83c

Browse files
committed
Check that the RDN exists
1 parent 984ced6 commit 308f83c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyRemoveIT.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,11 @@ public void testRemoveTwoNotRequiredAttributes() throws Exception
242242
Attributes tn = new BasicAttributes( "telephoneNumber", "12345678", true );
243243
ctx.modifyAttributes( RDN, DirContext.ADD_ATTRIBUTE, tn );
244244

245+
// Verify that attributes are deleted
246+
Attributes attrs = ctx.getAttributes( RDN );
247+
245248
// Remove description and telephoneNumber to Attribute
246-
Attributes attrs = new BasicAttributes( true );
249+
attrs = new BasicAttributes( true );
247250
attrs.put( new BasicAttribute( "description" ) );
248251
attrs.put( new BasicAttribute( "telephoneNumber" ) );
249252
ctx.modifyAttributes( RDN, DirContext.REMOVE_ATTRIBUTE, attrs );

0 commit comments

Comments
 (0)