| | |
| | | import org.opends.server.api.SynchronizationProvider; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.core.ModifyOperation; |
| | | import org.opends.server.core.ModifyOperationBasis; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.replication.common.CSNGenerator; |
| | | import org.opends.server.replication.plugin.EntryHistorical; |
| | |
| | | |
| | | /** |
| | | * Set up the environment for performing the tests in this Class. |
| | | * |
| | | * @throws Exception |
| | | * If the environment could not be set up. |
| | | */ |
| | | @Override |
| | | @BeforeClass |
| | |
| | | List<Modification> mods = new ArrayList<Modification>(); |
| | | Modification mod = new Modification(ModificationType.ADD, attr); |
| | | mods.add(mod); |
| | | ModifyOperationBasis modOp = new ModifyOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), null, baseDN, mods); |
| | | modOp.setInternalOperation(true); |
| | | modOp.run(); |
| | | |
| | | ModifyOperation modOp = connection.processModify(baseDN, mods); |
| | | assertEquals(modOp.getResultCode(), ResultCode.SUCCESS, |
| | | "The original operation failed"); |
| | | |
| | |
| | | mod = new Modification(ModificationType.DELETE, attr); |
| | | mods.clear(); |
| | | mods.add(mod); |
| | | modOp = new ModifyOperationBasis(connection, |
| | | InternalClientConnection.nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), null, baseDN, mods); |
| | | modOp.setInternalOperation(true); |
| | | modOp.run(); |
| | | |
| | | modOp = connection.processModify(baseDN, mods); |
| | | assertEquals(modOp.getResultCode(), ResultCode.SUCCESS, |
| | | "The original operation failed"); |
| | | |