[ 
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_jdbcMBeanTest_01.diff

Thanks for committing patch 02 for the VersionMBeanTest with revision 634433 :)

Now attaching a new patch, d3385_jdbcMBeanTest_01.diff, which implements a 
junit test for the JDBCMBean. With this patch, the Emma tool reports 100% test 
coverage of org.apache.derby.jdbc.JDBC.java.

M      
java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java

 - Extending BaseJDBCTestCase instead of BaseTestCase, since the new test 
subclass requires a JDBC connection in order to verify certain attribute values.
 - Added a return type (Object) to the invokeOperation method, and added a 
similar method for invoking an operation with arguments. 
 - Added methods for retrieving sysinfo output from either the network server 
or the local VM (the latter is not used currently). This could potentially be 
useful for other tests as well, but I wasn't sure where to put it, so it lives 
in MBeanTest for now.
 - Added a couple of new assert methods.
 - Fixed some comments.

A      
java/testing/org/apache/derbyTesting/functionTests/tests/management/JDBCMBeanTest.java

 - The new test class testing the presence, name, return type and return value 
of all expected attributes of the JDBCMBean, as well as the result of invoking 
the (only) operation.

M      
java/testing/org/apache/derbyTesting/functionTests/tests/management/_Suite.java

 - Adding JDBCMBeanTest to the management test suite.

Please review...

> 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_ant-junit-all.diff, d3385_jdbcMBeanTest_01.diff, 
> d3385_versionMBeanTest_01.diff, d3385_versionMBeanTest_02.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.

Reply via email to