ConfigChangeListenerTestCase.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
/*
* 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 legal-notices/CDDLv1_0.txt
* 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 legal-notices/CDDLv1_0.txt.
* 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.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* A set of generic test cases for config change listeners.
*/
public class ConfigChangeListenerTestCase
extends APITestCase
{
/**
* Ensures that the Directory Server is running.
*
* @throws Exception If an unexpected problem occurs.
*/
public void startServer()
throws Exception
{
}
/**
* Retrieves the set of config change listeners registered with the server.
*
* @return The set of config change listeners registered with the server.
*
* @throws Exception If an unexpected problem occurs.
*/
public Object[][] getConfigChangeListeners()
throws Exception
{
new ArrayList<ConfigChangeListener>();
{
}
return componentArray;
}
/**
* Retrieves the config change listeners from the provided configuration
* entry, as well as recursively from all of the its subordinate entries.
*
* @param configEntry The configuration entry from which to retrieve the
* change listeners.
* @param dns The list into which to add the DNs of the
* configuration entries with the change listeners.
* @param listeners The list into which to add all identified change
* listeners.
*/
{
{
}
if (configEntry.hasChildren())
{
{
}
}
}
/**
* Tests the <CODE>configChangeIsAccpetable</CODE> method with the current
* configuration.
*
* @param dn The DN of the configuration entry for the provided listener.
* @param l The listener to be tested.
*
* @throws Exception If an unexpected problem occurs.
*/
throws Exception
{
assertNotNull(e);
}
}