| | |
| | | testModify(entry, hist, 1, true, newModification(DELETE, DISPLAYNAME, "aValue")); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DESCRIPTION); |
| | | attr = Attributes.create(DESCRIPTION, "value2", "value3", "value4"); |
| | | assertEquals(attrs.get(0), attr); |
| | | assertEquals(attrs.get(0), Attributes.create(DESCRIPTION, "value2", "value3", "value4")); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DESCRIPTION); |
| | | attr = Attributes.create(DESCRIPTION, "value3", "value4"); |
| | | assertEquals(attrs.get(0), attr); |
| | | assertEquals(attrs.get(0), Attributes.create(DESCRIPTION, "value3", "value4")); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attr); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |
| | |
| | | assertEquals(hist.encodeAndPurge(), attrDel); |
| | | |
| | | // The entry should have no value |
| | | List<Attribute> attrs = entry.getAttribute(DISPLAYNAME); |
| | | assertNull(attrs); |
| | | assertThat(entry.getAttribute(DISPLAYNAME)).isEmpty(); |
| | | } |
| | | |
| | | /** |