| | |
| | | import org.opends.server.loggers.Error; |
| | | import org.opends.server.loggers.Debug; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | |
| | | } |
| | | |
| | | /** |
| | | * Shut down the server, if it has been started. |
| | | * @param reason The reason for the shutdown. |
| | | */ |
| | | public static void shutdownServer(String reason) |
| | | { |
| | | if (SERVER_STARTED) |
| | | { |
| | | DirectoryServer.shutDown("org.opends.server.TestCaseUtils", reason); |
| | | SERVER_STARTED = false; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Initializes a memory-based backend that may be used to perform operations |
| | | * while testing the server. This will ensure that the memory backend is |
| | | * created in the server if it does not yet exist, and that it is empty. Note |