[
https://issues.apache.org/jira/browse/DERBY-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John H. Embretsen updated DERBY-3385:
-------------------------------------
Attachment: d3385_versionMBeanTest_01.diff
Attaching patch d3385_versionMBeanTest_01.diff in case anyone wants to review
it while I'm on vacation (1 week).
The patch only includes tests for the Version MBean. Currently only attributes
(names and types) for the VersionMBean instance for derby.jar are tested (I
expect to add more later).
A java/testing/org/apache/derbyTesting/functionTests/tests/management
New package for JMX management tests. Built with JDK1.5.
A
java/testing/org/apache/derbyTesting/functionTests/tests/management/_Suite.java
Test suite including all relevant management tests.
A
java/testing/org/apache/derbyTesting/functionTests/tests/management/VersionMBeanTest.java
Test fixtures/logic for the VersionMBean.
A
java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml
Build script for management tests.
M java/testing/org/apache/derbyTesting/junit/TestConfiguration.java
Modifications to add jmxPort as a field in TestConfiguration. Default value is
9999 (arbitrarily chosen) for now. Let me know if there is a better way to do
this.
M java/testing/build.xml
Builds management tests as part of the overall test build.
This patch does not add the new tests to a larger suite such as suites.All or
junit-all.
1 of the 10 tests will fail until the VersionMBean is updated (change attribute
name "MaintVersion" to MaintenanceVersion"). Running the tests requires JDK1.5
or better.
> Tests for JMX Management and Monitoring
> ---------------------------------------
>
> Key: DERBY-3385
> URL: https://issues.apache.org/jira/browse/DERBY-3385
> Project: Derby
> Issue Type: Sub-task
> Components: JMX, Test
> Reporter: John H. Embretsen
> Assignee: John H. Embretsen
> Attachments: d3385_versionMBeanTest_01.diff, TestJMXp9.java
>
>
> DERBY-1387 implements a new feature set in Derby: Java Management eXtentions
> (JMX), i.e. standards-based management and monitoring capabilities.
> As these are completely new features providing additional interfaces to a
> running Derby system, a set of functional regression tests should be added.
> The new tests should verify that Derby's public JMX API works as intended,
> and should be able to detect regressions in this area in the future. There is
> a functional specification (jmxFuncspec.html) attached to DERBY-1387 which
> may be used as reference.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.