| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the ability of the alert handler to send an administrative alert |
| | | * with no special configuration. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAlertHandler() |
| | | { |
| | | int count = DummyAlertHandler.getAlertCount(); |
| | |
| | | /** |
| | | * Tests alert handler functionality when a given alert is explicitly enabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is not explicitly |
| | | * enabled but others are. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNotEnabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is explicitly |
| | | * disabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is not explicitly |
| | | * disabled but others are. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNotDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is both enabled and |
| | | * disabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnabledAndDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |