| | |
| | | */ |
| | | package org.opends.server.replication; |
| | | |
| | | import static org.opends.server.TestCaseUtils.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.IOException; |
| | | import java.util.LinkedList; |
| | |
| | | import org.opends.server.replication.server.ReplicationServer; |
| | | import org.opends.server.replication.service.ReplicationBroker; |
| | | import org.opends.server.types.*; |
| | | import org.opends.server.util.StaticUtils; |
| | | import org.testng.annotations.Test; |
| | | |
| | | import static org.opends.server.TestCaseUtils.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | /** |
| | | * Test that the dependencies are computed correctly when replaying |
| | | * sequences of operations that requires to follow a given order |
| | |
| | | } |
| | | finally |
| | | { |
| | | if (replServer != null) { |
| | | replServer.remove(); |
| | | StaticUtils.recursiveDelete(new File(DirectoryServer.getInstanceRoot(), |
| | | replServer.getDbDirName())); |
| | | } |
| | | remove(replServer); |
| | | if (domain != null) |
| | | MultimasterReplication.deleteDomain(baseDn); |
| | | } |
| | |
| | | } |
| | | finally |
| | | { |
| | | if (replServer != null) { |
| | | replServer.remove(); |
| | | StaticUtils.recursiveDelete(new File(DirectoryServer.getInstanceRoot(), |
| | | replServer.getDbDirName())); |
| | | } |
| | | |
| | | remove(replServer); |
| | | if (domain != null) |
| | | MultimasterReplication.deleteDomain(baseDn); |
| | | } |
| | |
| | | } |
| | | finally |
| | | { |
| | | if (replServer != null) { |
| | | replServer.remove(); |
| | | StaticUtils.recursiveDelete(new File(DirectoryServer.getInstanceRoot(), |
| | | replServer.getDbDirName())); |
| | | } |
| | | |
| | | remove(replServer); |
| | | if (domain != null) |
| | | MultimasterReplication.deleteDomain(baseDn); |
| | | } |
| | |
| | | } |
| | | finally |
| | | { |
| | | if (replServer != null) { |
| | | replServer.remove(); |
| | | StaticUtils.recursiveDelete(new File(DirectoryServer.getInstanceRoot(), |
| | | replServer.getDbDirName())); |
| | | } |
| | | |
| | | remove(replServer); |
| | | if (domain != null) |
| | | MultimasterReplication.deleteDomain(baseDn); |
| | | } |