| | |
| | | import org.testng.annotations.Test; |
| | | |
| | | /** |
| | | * An abstract class that all JMX unit test should extend. |
| | | * An abstract class that all JMX unit test should extend. |
| | | */ |
| | | @Test(groups = { "precommit", "jmx" }) |
| | | public abstract class JmxTestCase extends DirectoryServerTestCase |
| | | { |
| | | /** |
| | | * Set up the environment for performing the tests in this suite. |
| | | * |
| | | * |
| | | * @throws Exception |
| | | * If the environment could not be set up. |
| | | */ |
| | |
| | | { |
| | | // Make sure that the server is up and running. |
| | | TestCaseUtils.startServer(); |
| | | TestCaseUtils.initializeTestBackend(true); |
| | | |
| | | synchronized (this) |
| | | { |
| | | this.wait(500); |
| | |
| | | |
| | | /** |
| | | * Get a reference to the JMX connection handler. |
| | | * |
| | | * |
| | | * @throws an |
| | | * Exception is something went wrong. |
| | | */ |
| | |
| | | |
| | | /** |
| | | * Enable JMX with the port chosen in TestCaseUtils. |
| | | * |
| | | * |
| | | * @throws Exception |
| | | * if the handler cannot be enabled. |
| | | */ |