/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
*/
/**
* A set of generic test cases that apply to all Directory Server backends.
*/
public class GenericBackendTestCase
extends BackendTestCase
{
/**
* Ensures that the Directory Server is running.
*
* @throws Exception If an unexpected problem occurs.
*/
@BeforeClass()
public void startServer()
throws Exception
{
}
/**
* Retrieves the backends defined in the server.
*
* @return The backends defined in the server.
*/
{
{
}
return objectArray;
}
/**
* Tests the {@code getBaseDNs} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code isLocal} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.isLocal();
}
/**
* Tests the {@code getSupportedControls} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code supportsControl} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code getSupportedFeatures} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.getSupportedFeatures();
}
/**
* Tests the {@code supportsFeature} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code supportsLDIFExport} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.supportsLDIFExport();
}
/**
* Tests the {@code supportsLDIFImport} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.supportsLDIFImport();
}
/**
* Tests the {@code supportsBackup} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.supportsBackup();
}
/**
* Tests the {@code supportsRestore} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.supportsRestore();
}
/**
* Tests the {@code getBackendID} method for the provided backend.
*
* @param b The backend to test.
*/
{
assertNotNull(b.getBackendID());
}
/**
* Tests the {@code isPrivateBackend} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.isPrivateBackend();
}
/**
* Tests the {@code getWritabilityMode} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code getBackendMonitor} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code getEntryCount} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.getEntryCount();
}
/**
* Tests the {@code getParentBackend} method for the provided backend.
*
* @param b The backend to test.
*/
{
b.getParentBackend();
}
/**
* Tests the {@code getSubordinateBackends} method for the provided backend.
*
* @param b The backend to test.
*/
{
}
/**
* Tests the {@code handlesEntry} method for the provided backend for each
* of the declared base DNs.
*
* @param b The backend to test.
*
* @throws Exception If an unexpected problem occurs.
*/
throws Exception
{
{
}
}
}