| | |
| | | assertEquals(mod.getAttribute(), values3and4); |
| | | |
| | | // check that the entry now contains value1 and value2 and no other values. |
| | | Attribute resultEntryAttr = entry.getAttribute(DESCRIPTION).get(0); |
| | | Attribute resultEntryAttr = entry.getAllAttributes(DESCRIPTION).get(0); |
| | | assertEquals(resultEntryAttr, values1and2); |
| | | |
| | | Attribute attr = buildSyncHist(DESCRIPTION, |
| | |
| | | |
| | | private String getEntryUUID(Entry entry) |
| | | { |
| | | List<Attribute> uuidAttrs = entry.getAttribute(getEntryUUIDAttributeType()); |
| | | List<Attribute> uuidAttrs = entry.getAllAttributes(getEntryUUIDAttributeType()); |
| | | return uuidAttrs.get(0).iterator().next().toString(); |
| | | } |
| | | |
| | |
| | | testModify(entry, hist, 1, true, newModification(DELETE, DISPLAYNAME, "aValue")); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DESCRIPTION); |
| | | List<Attribute> attrs = entry.getAllAttributes(DESCRIPTION); |
| | | assertEquals(attrs.get(0), Attributes.create(DESCRIPTION, "value2", "value3", "value4")); |
| | | } |
| | | |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DESCRIPTION); |
| | | List<Attribute> attrs = entry.getAllAttributes(DESCRIPTION); |
| | | assertEquals(attrs.get(0), Attributes.create(DESCRIPTION, "value3", "value4")); |
| | | } |
| | | |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | assertThat(entry.getAllAttributes(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |