EmbeddedUtilsTestCase.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * CDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Common Development and Distribution License, Version 1.0 only
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * (the "License"). You may not use this file except in compliance
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * or http://forgerock.org/license/CDDLv1.0.html.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * See the License for the specific language governing permissions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * file and include the License file at legal-notices/CDDLv1_0.txt.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * If applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * fields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * information:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * CDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright 2008 Sun Microsystems, Inc.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Portions Copyright 2014-2015 ForgeRock AS
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport org.opends.server.types.DirectoryEnvironmentConfig;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * A set of generic test cases for the EmbeddedUtils class.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Ensures that the Directory Server is running before running any tests.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws Exception If an unexpected problem occurs.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public void setUp()
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Make sure that the server gets restarted by the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * {@code TestCaseUtils.restartServer} method because it does a few things to
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the server that aren't covered in the out-of-the-box configuration.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws Exception If an unexpected problem occurs.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster public void cleanUp()
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Tests the ability to use EmbeddedUtils to restart the server.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws Exception If an unexpected problem occurs.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster EmbeddedUtils.restartServer(getClass().getName(),
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Tests the ability to use EmbeddedUtils to stop and then subsequently start
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * the server.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * @throws Exception If an unexpected problem occurs.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster LocalizableMessage.raw("testStopAndStartServer"));