Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 69569 invoked from network); 26 Feb 2008 16:29:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2008 16:29:45 -0000 Received: (qmail 72635 invoked by uid 500); 26 Feb 2008 16:29:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72601 invoked by uid 500); 26 Feb 2008 16:29:39 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 72592 invoked by uid 99); 26 Feb 2008 16:29:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 08:29:39 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2008 16:29:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B5EB29A0013 for ; Tue, 26 Feb 2008 08:28:51 -0800 (PST) Message-ID: <1625450389.1204043331504.JavaMail.jira@brutus> Date: Tue, 26 Feb 2008 08:28:51 -0800 (PST) From: "John H. Embretsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3385) Tests for JMX Management and Monitoring In-Reply-To: <16980351.1202127307854.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.