| | |
| | | import org.opends.server.core.InitializationException; |
| | | import org.opends.server.loggers.Error; |
| | | import org.opends.server.loggers.Debug; |
| | | import org.opends.server.plugins.InvocationCounterPlugin; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.FilePermission; |
| | | import org.opends.server.types.OperatingSystem; |
| | | |
| | | import static org.testng.Assert.*; |
| | | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | return; |
| | | } |
| | | |
| | | InvocationCounterPlugin.resetStartupCalled(); |
| | | |
| | | // Get the build root and use it to create a test package directory. |
| | | String buildRoot = System.getProperty(PROPERTY_BUILD_ROOT); |
| | | File testRoot = new File(buildRoot + File.separator + "build" + |
| | |
| | | Error.removeAllErrorLoggers(false); |
| | | Debug.removeAllDebugLoggers(false); |
| | | directoryServer.startServer(); |
| | | |
| | | assertTrue(InvocationCounterPlugin.startupCalled()); |
| | | |
| | | SERVER_STARTED = true; |
| | | } |
| | | |
| | |
| | | { |
| | | if (SERVER_STARTED) |
| | | { |
| | | InvocationCounterPlugin.resetShutdownCalled(); |
| | | DirectoryServer.shutDown("org.opends.server.TestCaseUtils", reason); |
| | | assertTrue(InvocationCounterPlugin.shutdownCalled()); |
| | | SERVER_STARTED = false; |
| | | } |
| | | } |