User: d_jencks
  Date: 02/03/23 21:35:01

  Modified:    src/main/org/jboss/test/jmx/test
                        DeployServiceUnitTestCase.java
  Log:
  Moved mbean xml config processing entirely into ServiceConfigurator and added nested 
mbean configuration processing.  Made a couple more mbean interfaces xdoclet generated
  
  Revision  Changes    Path
  1.12      +10 -6     
jbosstest/src/main/org/jboss/test/jmx/test/DeployServiceUnitTestCase.java
  
  Index: DeployServiceUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/test/DeployServiceUnitTestCase.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DeployServiceUnitTestCase.java    29 Jan 2002 22:00:04 -0000      1.11
  +++ DeployServiceUnitTestCase.java    24 Mar 2002 05:35:01 -0000      1.12
  @@ -31,7 +31,7 @@
   /**
    * @see       <related>
    * @author    <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version   $Revision: 1.11 $
  + * @version   $Revision: 1.12 $
    */
   public class DeployServiceUnitTestCase
          extends JBossTestCase
  @@ -381,12 +381,15 @@
            undeploy(testUrlD);
   
            //check they aren't there any more
  -         Collection ds = 
Arrays.asList((ObjectName[])getServer().getAttribute(serviceControllerName, 
"Deployed"));
  +         Collection ds = (Collection)getServer().invoke(serviceControllerName, 
  +                                                  "listDeployedNames",
  +                                                  new Object[] {},
  +                                                  new String[] {});
            assertTrue("test mbean A still registered after undeploy", 
!ds.contains(testObjectNameA));
   
  -         assertTrue("test mbean A still registered after undeploy", 
!ds.contains(testObjectNameB));
  +         assertTrue("test mbean B still registered after undeploy", 
!ds.contains(testObjectNameB));
   
  -         assertTrue("test mbean A still registered after undeploy", 
!ds.contains(testObjectNameC));
  +         assertTrue("test mbean C still registered after undeploy", 
!ds.contains(testObjectNameC));
            assertTrue("test mbean D still registered after undeploy", 
!ds.contains(testObjectNameD));
         }
         finally
  @@ -522,7 +525,8 @@
         } // end of try-catch
         
      }
  -
  +   /* This test seems to be wrong.  Currently an exception in deployment of any 
mbean in a 
  +      sar results int the complete undeployment of the sar.
      public void testCrashInStart() throws Exception
      //Thanks to David Budworth for this test.
      {
  @@ -551,7 +555,7 @@
         } // end of try-catch
         
      }
  -
  +   */
      public void testNullInfoInDynamicMBean() throws Exception
      //Thanks to David Budworth for this test.
      //Tries to deploy a DynamicMBean that returns null from getMBeanInfo.
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to