JMXAlertHandlerTestCase.java revision ea1068c292e9b341af6d6b563cd8988a96be20a9
3980N/A * The contents of this file are subject to the terms of the 3980N/A * Common Development and Distribution License, Version 1.0 only 3980N/A * (the "License"). You may not use this file except in compliance * See the License for the specific language governing permissions * and limitations under the License. * When distributing Covered Code, include this CDDL HEADER in each * If applicable, add the following below this CDDL HEADER, with the * fields enclosed by brackets "[]" replaced with your own identifying * Portions Copyright [yyyy] [name of copyright owner] * Copyright 2006-2008 Sun Microsystems, Inc. * Portions Copyright 2014-2015 ForgeRock AS * A set of test cases for the JMX Alert Handler. * Ensures that the Directory Server is running. * @throws Exception If an unexpected problem occurs. * Retrieves the set of JMX alert handlers registered with the Directory * Server. There should just be one. * @return The set of JMX alert handlers registered with the Directory * Tests the <CODE>getObjectName</CODE> method. * @param handler The JMX alert handler to use for the test. * Tests the <CODE>sendAlertNotification</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. * Tests the <CODE>getNotificationInfo</CODE> method. * @param handler The JMX alert handler to use for the test. * Tests the <CODE>getAttribute</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. * Tests the <CODE>getAttributes</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. * Tests the <CODE>setAttribute</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. * Tests the <CODE>setAttributes</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. * Tests the <CODE>invoke</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs. new String[] {
"java.lang.String",
"java.lang.String" });
* Tests the <CODE>getMBeanInfo</CODE> method. * @param handler The JMX alert handler to use for the test. * @throws Exception If an unexpected problem occurs.