1570N/A/*
1570N/A * CDDL HEADER START
1570N/A *
1570N/A * The contents of this file are subject to the terms of the
1570N/A * Common Development and Distribution License, Version 1.0 only
1570N/A * (the "License"). You may not use this file except in compliance
1570N/A * with the License.
1570N/A *
1570N/A * You can obtain a copy of the license at
1570N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
1570N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
1570N/A * See the License for the specific language governing permissions
1570N/A * and limitations under the License.
1570N/A *
1570N/A * When distributing Covered Code, include this CDDL HEADER in each
1570N/A * file and include the License file at
1570N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
1570N/A * add the following below this CDDL HEADER, with the fields enclosed
1570N/A * by brackets "[]" replaced with your own identifying information:
1570N/A * Portions Copyright [yyyy] [name of copyright owner]
1570N/A *
1570N/A * CDDL HEADER END
1570N/A *
1570N/A *
3215N/A * Copyright 2006-2008 Sun Microsystems, Inc.
1570N/A */
1570N/A
1570N/Apackage org.opends.quicksetup;
1570N/A
1570N/Aimport static org.testng.Assert.*;
1570N/Aimport org.testng.annotations.*;
1570N/A
1570N/Aimport java.io.IOException;
1570N/Aimport java.util.Set;
1570N/A
1570N/A/**
1570N/A * Configuration Tester.
1570N/A */
1647N/A@Test(groups = {"slow"})
1570N/Apublic class ConfigurationTest extends QuickSetupTestCase {
1570N/A
1570N/A Configuration config;
1570N/A
1570N/A @BeforeClass
1570N/A public void setUp() throws Exception {
1647N/A config = TestUtilities.getInstallation().getCurrentConfiguration();
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetDirectoryManagerDns() throws IOException {
1570N/A Set<String> dns = config.getDirectoryManagerDns();
1570N/A assertTrue(dns.size() > 0);
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetPort() throws IOException {
1647N/A assertTrue(TestUtilities.ldapPort.equals(config.getPort()));
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetLogPaths() throws IOException {
1570N/A // TODO: something more useful
1570N/A config.getLogPaths();
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testHasBeenModified() throws IOException {
1570N/A assertTrue(config.hasBeenModified());
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetOutsideLogs() throws IOException {
1570N/A // TODO: something more useful
1570N/A config.getOutsideLogs();
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetOutsideDbs() throws IOException {
1570N/A // TODO: something more useful
1570N/A config.getOutsideDbs();
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetContents() throws IOException {
1570N/A assertNotNull(config.getContents());
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testGetDatabasePaths() throws IOException {
1570N/A assertTrue(config.getDatabasePaths().size() > 0);
1570N/A }
1570N/A
1986N/A @Test(enabled = false)
1570N/A public void testLoad() {
1570N/A //TODO: need way to verify reload
1570N/A }
1570N/A
1570N/A}