mx4j/src/test/test/javax/management MBeanComplianceTest.java,1.8,1.9

Jeremy Boynes <[email protected]> Tue, 08 Feb 2005 03:46:01 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22509/src/test/test/javax/management

Modified Files:
	MBeanComplianceTest.java 
Log Message:
Fix for [ 1115083 ] MBeanInfo missing classname is not compliant
Although our testcase says this is permissible in 1.2, it really is not
Patch applied and testcase updated

Index: MBeanComplianceTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/MBeanComplianceTest.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** MBeanComplianceTest.java	13 Nov 2004 16:38:30 -0000	1.8
--- MBeanComplianceTest.java	8 Feb 2005 03:45:59 -0000	1.9
***************
*** 204,210 ****
     public void testNotCompliantDynamicNoClassName() throws Exception
     {
!       // In JMX 1.2 it is possible to create an MBeanInfo with null class name
        Object mbean = new ComplianceSupport.NoClassNameDynamicMBean();
!       if (!isCompliant(mbean)) fail();
     }
  
--- 204,210 ----
     public void testNotCompliantDynamicNoClassName() throws Exception
     {
!       // In JMX 1.2 it is not possible to create an MBeanInfo with null class name
        Object mbean = new ComplianceSupport.NoClassNameDynamicMBean();
!       if (isCompliant(mbean)) fail();
     }
  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click