[jboss-cvs] JBossAS SVN: r62212 - trunk/testsuite/src/main/org/jboss/test/jmx/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 10 08:45:18 EDT 2007


Author: dimitris at jboss.org
Date: 2007-04-10 08:45:18 -0400 (Tue, 10 Apr 2007)
New Revision: 62212

Modified:
   trunk/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
Log:
JBAS-1955, rollback the latest changes.

Modified: trunk/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java	2007-04-10 12:43:06 UTC (rev 62211)
+++ trunk/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java	2007-04-10 12:45:18 UTC (rev 62212)
@@ -1,31 +1,28 @@
 /*
-  * JBoss, Home of Professional Open Source
-  * Copyright 2005, JBoss Inc., and individual contributors as indicated
-  * by the @authors tag. See the copyright.txt in the distribution for a
-  * full listing of individual contributors.
-  *
-  * This is free software; you can redistribute it and/or modify it
-  * under the terms of the GNU Lesser General Public License as
-  * published by the Free Software Foundation; either version 2.1 of
-  * the License, or (at your option) any later version.
-  *
-  * This software is distributed in the hope that it will be useful,
-  * but WITHOUT ANY WARRANTY; without even the implied warranty of
-  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  * Lesser General Public License for more details.
-  *
-  * You should have received a copy of the GNU Lesser General Public
-  * License along with this software; if not, write to the Free
-  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-  */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
 package org.jboss.test.jmx.test;
 
-
 import java.util.Iterator;
 
-import javax.management.AttributeList;
-import javax.management.MBeanAttributeInfo;
 import javax.management.MBeanInfo;
 import javax.management.ObjectName;
 import javax.naming.InitialContext;
@@ -34,9 +31,8 @@
 import org.jboss.test.JBossTestCase;
 
 /** 
- * Tests over the RMIAdaptor and the SerializablePolicy
+ * Tests over the RMIAdaptor
  *
- * @author <a href="mailto:mageshbk at jboss.com">Magesh Kumar B</a>
  * @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
  * @version <tt>$Revision$</tt>
  */
@@ -69,17 +65,6 @@
          try
          {
             MBeanInfo mbeanInfo = rmiAdaptor.getMBeanInfo(objectName);
-            // This gives only serializable attributes
-            MBeanAttributeInfo[] attrInfos = mbeanInfo.getAttributes();
-            int attrCount = attrInfos.length;
-            String[] attrNames = new String[attrCount];
-            for (int i = 0; i < attrCount; i++)
-            {
-               attrNames[i] = ((MBeanAttributeInfo)attrInfos[i]).getName();
-            }
-            // Now call the getAttributes on these serializable attributes
-            // even ClassNotFoundExceptions are overcome with this method
-            AttributeList attrs = rmiAdaptor.getAttributes(objectName,attrNames);
          }
          catch (Throwable t)
          {




More information about the jboss-cvs-commits mailing list