User: d_jencks
  Date: 02/04/16 11:27:38

  Modified:    src/main/org/jboss/test/jmx/test
                        DeployServiceUnitTestCase.java
  Log:
  fix 2 tests
  
  Revision  Changes    Path
  1.14      +3 -5      
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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- DeployServiceUnitTestCase.java    7 Apr 2002 05:25:59 -0000       1.13
  +++ DeployServiceUnitTestCase.java    16 Apr 2002 18:27:37 -0000      1.14
  @@ -31,7 +31,7 @@
   /**
    * @see       <related>
    * @author    <a href="mailto:[EMAIL PROTECTED]";>David Jencks</a>
  - * @version   $Revision: 1.13 $
  + * @version   $Revision: 1.14 $
    */
   public class DeployServiceUnitTestCase
          extends JBossTestCase
  @@ -140,8 +140,6 @@
         ObjectName testObjectName = new ObjectName("test:name=TestDeployer");
         ObjectName testObjectName2 = new ObjectName("test:name=TestDeployer2");
         ObjectName testObjectName3 = new ObjectName("test:name=TestDeployer3");
  -      //the classloader mbean
  -      ObjectName classLoaderObjectName = new 
ObjectName("jboss.system:service=ServiceClassLoader");
         //check they aren't there already
         assertTrue("test mbean already registered before deploy", 
!getServer().isRegistered(testObjectName));
   
  @@ -154,7 +152,7 @@
         //make sure we can create an mbean based on the class we just deployed.
         try
         {
  -         getServer().createMBean("org.jboss.test.jmx.mbean.TestDeployer", 
testObjectName2, classLoaderObjectName);
  +         getServer().createMBean("org.jboss.test.jmx.mbean.TestDeployer", 
testObjectName2);
         }
         catch (Exception e)
         {
  @@ -185,7 +183,7 @@
         //check the class is not available
         try
         {
  -         ObjectInstance oe = 
getServer().createMBean("org.jboss.test.jmx.mbean.TestDeployer", testObjectName3, 
classLoaderObjectName);
  +         ObjectInstance oe = 
getServer().createMBean("org.jboss.test.jmx.mbean.TestDeployer", testObjectName3);
            fail("created mbean when class should not be present: object instance: " + 
oe);
         }
         catch (ReflectionException re)
  
  
  

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

Reply via email to