| File was renamed from opends/tests/unit-tests-testng/src/server/org/opends/server/protocols/jmx/postConnectedDisconnectTest.java |
| | |
| | | * This class check is the pos-connected and post-disconnected plugin are |
| | | * called (see issue #728). |
| | | */ |
| | | public class postConnectedDisconnectTest extends JmxTestCase |
| | | public class PostConnectedDisconnectTest extends JmxTestCase |
| | | { |
| | | |
| | | |
| | | /** |
| | | * Set up the environment for performing the tests in this suite. |
| | | * |
| | | * |
| | | * @throws Exception |
| | | * If the environment could not be set up. |
| | | */ |
| | |
| | | public void setUp() throws Exception |
| | | { |
| | | super.setUp(); |
| | | |
| | | |
| | | TestCaseUtils.addEntries( |
| | | "dn: cn=Privileged User,o=test", |
| | | "objectClass: top", |
| | |
| | | "ds-pwp-password-policy-dn: cn=Clear UserPassword Policy," + |
| | | "cn=Password Policies,cn=config"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Clean up the environment after performing the tests in this suite. |
| | | * |
| | | * |
| | | * @throws Exception |
| | | * If the environment could not be set up. |
| | | */ |
| | |
| | | .decode("cn=Privileged User,o=test")); |
| | | assertEquals(deleteOperation.getResultCode(), ResultCode.SUCCESS); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Perform a simple connect. |
| | | * @throws Exception If something wrong occurs. |
| | | */ |
| | | @Test(enabled = true, groups = {"slow"}) |
| | | public void checkPostconnectDisconnectPlugin() throws Exception |
| | | @Test(enabled = false, groups = {"slow"}) |
| | | public void checkPostConnectDisconnectPlugin() throws Exception |
| | | { |
| | | // Before the test, how many time postconnect and postdisconnect |
| | | // have been called. |