mx4j/src/test/test/javax/management/modelmbean RequiredModelMBeanTest.java,1.9,1.10

Brian Scully <[email protected]>
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management/modelmbean
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10889/src/test/test/javax/management/modelmbean

Modified Files:
	RequiredModelMBeanTest.java 
Log Message:
Fix for bug #940161 RequiredModelMBean methods are not invoked

Index: RequiredModelMBeanTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/modelmbean/RequiredModelMBeanTest.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** RequiredModelMBeanTest.java	22 Mar 2004 13:41:36 -0000	1.9
--- RequiredModelMBeanTest.java	15 Jun 2004 01:56:50 -0000	1.10
***************
*** 582,612 ****
        {
        }
! 
!       try
!       {
!          m_server.invoke(name, "setManagedResource", new Object[]{new ModelMBeanTarget(new MutableInteger(0)), "ObjectReference"}, new String[]{Object.class.getName(), String.class.getName()});
!          fail("Cannot invoke a ModelMBean method via MBeanServer");
!       }
!       catch (Exception ignored)
!       {
!       }
! 
!       try
!       {
!          m_server.invoke(name, "load", new Object[0], new String[0]);
!          fail("Cannot invoke a ModelMBean method via MBeanServer");
!       }
!       catch (Exception ignored)
!       {
!       }
! 
!       try
!       {
!          m_server.invoke(name, "store", new Object[0], new String[0]);
!          fail("Cannot invoke a ModelMBean method via MBeanServer");
!       }
!       catch (Exception ignored)
!       {
!       }
  
        // Now specify setManagedResource as an operation in the MMBI
--- 582,591 ----
        {
        }
!       
!       // Bug #940161 Required ModelMBean methods are not invoked
!       m_server.invoke(name, "setManagedResource", new Object[]{new ModelMBeanTarget(new MutableInteger(0)), "ObjectReference"}, new String[]{Object.class.getName(), String.class.getName()});
!       m_server.invoke(name, "load", new Object[0], new String[0]);
!       m_server.invoke(name, "store", new Object[0], new String[0]);
!       m_server.invoke(name, "sendNotification", new Object[]{ "generic" }, new String[]{ String.class.getName() });
  
        // Now specify setManagedResource as an operation in the MMBI



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.