From abfde5e5a09aa23d8a142d4349fdb8ebdf0fb172 Mon Sep 17 00:00:00 2001 From: Mattias Hellborg Arthursson Date: Wed, 14 Aug 2013 11:05:08 +0200 Subject: [PATCH] LDAP-119: Integration test case for workaround. --- .../springframework/ldap/LdapTemplateModifyITest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/integration-tests/src/test/java/org/springframework/ldap/LdapTemplateModifyITest.java b/test/integration-tests/src/test/java/org/springframework/ldap/LdapTemplateModifyITest.java index b39298d2..df898afc 100644 --- a/test/integration-tests/src/test/java/org/springframework/ldap/LdapTemplateModifyITest.java +++ b/test/integration-tests/src/test/java/org/springframework/ldap/LdapTemplateModifyITest.java @@ -274,6 +274,17 @@ public class LdapTemplateModifyITest extends AbstractLdapTemplateIntegrationTest verifyBoundCorrectData(); } + @Test + public void verifyCompleteReplacementOfUniqueMemberAttribute_Ldap119() { + DirContextOperations ctx = tested.lookupContext("cn=ROLE_USER,ou=groups"); + ctx.setAttributeValues("uniqueMember", + new String[]{"cn=Some Person4,ou=company1,c=Sweden,dc=jayway,dc=se"}, + true); + ctx.getModificationItems(); + + tested.modifyAttributes(ctx); + } + private Attributes setupAttributes() { Attributes attributes = new BasicAttributes(); BasicAttribute ocattr = new BasicAttribute("objectclass");