GenericMonitorTestCase.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-2010 Sun Microsystems, Inc.
* Portions Copyright 2014-2015 ForgeRock AS
*/
/**
* An abstract base class for all monitor test cases in which most tests are
* performed in a generic manner.
*/
public abstract class GenericMonitorTestCase
extends MonitorTestCase
{
// The configuration entry for this test case.
protected ConfigEntry configEntry;
/**
* Creates a new instance of this monitor test case.
*
* @param dnString The DN of the configuration entry for this test case, or
* <CODE>null</CODE> if there is none.
*
* @throws Exception If an unexpected problem occurs.
*/
throws Exception
{
super();
{
}
}
/**
* Retrieves an initialized instance of the associated monitor provider.
*
* @return An initialized instance of the associated monitor provider.
*
* @throws Exception If an unexpected problem occurs.
*/
protected abstract MonitorProvider getMonitorInstance()
throws Exception;
/**
* Creates an instance of the stack trace monitor and performs basic
* initialization for it.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testInitialization()
throws Exception
{
}
/**
* Tests the <CODE>getMonitorInstanceName</CODE> method.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testGetMonitorInstanceName()
throws Exception
{
}
/**
* Tests the <CODE>getMonitorData</CODE> method.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test
public void testGetMonitorData()
throws Exception
{
}
/**
* We need to drop all of the memory that we can.
*/
public void cleanupMem()
{
configEntry = null;
}
}