QuickSetupTestCase.java revision b4d83f40b246f01d3fce58e93251be9776f36ac1
124baf9a815afca02e01743867baf8319557e921kenneth_suter/*
124baf9a815afca02e01743867baf8319557e921kenneth_suter * CDDL HEADER START
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter * The contents of this file are subject to the terms of the
124baf9a815afca02e01743867baf8319557e921kenneth_suter * Common Development and Distribution License, Version 1.0 only
124baf9a815afca02e01743867baf8319557e921kenneth_suter * (the "License"). You may not use this file except in compliance
124baf9a815afca02e01743867baf8319557e921kenneth_suter * with the License.
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter * You can obtain a copy of the license at
124baf9a815afca02e01743867baf8319557e921kenneth_suter * trunk/opends/resource/legal-notices/OpenDS.LICENSE
124baf9a815afca02e01743867baf8319557e921kenneth_suter * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
124baf9a815afca02e01743867baf8319557e921kenneth_suter * See the License for the specific language governing permissions
124baf9a815afca02e01743867baf8319557e921kenneth_suter * and limitations under the License.
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter * When distributing Covered Code, include this CDDL HEADER in each
124baf9a815afca02e01743867baf8319557e921kenneth_suter * file and include the License file at
124baf9a815afca02e01743867baf8319557e921kenneth_suter * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
124baf9a815afca02e01743867baf8319557e921kenneth_suter * add the following below this CDDL HEADER, with the fields enclosed
124baf9a815afca02e01743867baf8319557e921kenneth_suter * by brackets "[]" replaced with your own identifying information:
124baf9a815afca02e01743867baf8319557e921kenneth_suter * Portions Copyright [yyyy] [name of copyright owner]
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter * CDDL HEADER END
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter * Portions Copyright 2007 Sun Microsystems, Inc.
124baf9a815afca02e01743867baf8319557e921kenneth_suter */
124baf9a815afca02e01743867baf8319557e921kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suterpackage org.opends.quicksetup;
124baf9a815afca02e01743867baf8319557e921kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suterimport org.testng.annotations.BeforeSuite;
124baf9a815afca02e01743867baf8319557e921kenneth_suterimport org.testng.annotations.AfterSuite;
124baf9a815afca02e01743867baf8319557e921kenneth_suterimport org.opends.server.TestCaseUtils;
124baf9a815afca02e01743867baf8319557e921kenneth_suter
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suterimport java.io.IOException;
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suter/**
124baf9a815afca02e01743867baf8319557e921kenneth_suter *
124baf9a815afca02e01743867baf8319557e921kenneth_suter */
124baf9a815afca02e01743867baf8319557e921kenneth_suterpublic class QuickSetupTestCase {
124baf9a815afca02e01743867baf8319557e921kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suter @BeforeSuite
124baf9a815afca02e01743867baf8319557e921kenneth_suter public final void suppressOutput() {
124baf9a815afca02e01743867baf8319557e921kenneth_suter TestCaseUtils.suppressOutput();
124baf9a815afca02e01743867baf8319557e921kenneth_suter }
124baf9a815afca02e01743867baf8319557e921kenneth_suter
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter @BeforeSuite
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter public final void initServer()
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter throws IOException, ApplicationException, InterruptedException
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter {
b4d83f40b246f01d3fce58e93251be9776f36ac1kenneth_suter TestUtilities.initServer();
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter }
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suter @AfterSuite
9aa7345ed04cb0b19c9302863d6012606c67c0c6kenneth_suter public final void shutdownServer() throws ApplicationException {
b4d83f40b246f01d3fce58e93251be9776f36ac1kenneth_suter TestUtilities.stopServer();
124baf9a815afca02e01743867baf8319557e921kenneth_suter TestCaseUtils.unsupressOutput();
124baf9a815afca02e01743867baf8319557e921kenneth_suter }
124baf9a815afca02e01743867baf8319557e921kenneth_suter
124baf9a815afca02e01743867baf8319557e921kenneth_suter}