| | |
| | | package org.opends.server.replication.plugin; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashSet; |
| | | |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.replication.ReplicationTestCase; |
| | |
| | | import org.opends.server.replication.plugin.ValueInfo; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.util.TimeThread; |
| | | import org.testng.annotations.DataProvider; |
| | | import org.testng.annotations.Test; |
| | |
| | | assertTrue(attrInfo4.getValuesInfo().size() == 1); |
| | | |
| | | // Check delete(LinkedHashSet<AttributeValue> values, ChangeNumber CN) |
| | | LinkedHashSet<AttributeValue> attVals = new LinkedHashSet<AttributeValue>(); |
| | | attVals.add(att); |
| | | attrInfo3.delete(attVals, updateTime) ; |
| | | AttributeType type = DirectoryServer.getAttributeType("description"); |
| | | attrInfo3.delete(Attributes.create(type, att), updateTime) ; |
| | | assertTrue(attrInfo3.getValuesInfo().size() == 1); |
| | | |
| | | // Check delete(ChangeNumber CN) |