[jboss-cvs] JBossAS SVN: r62211 - branches/Branch_4_2/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:43:06 EDT 2007
Author: dimitris at jboss.org
Date: 2007-04-10 08:43:06 -0400 (Tue, 10 Apr 2007)
New Revision: 62211
Modified:
branches/Branch_4_2/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
Log:
JBAS-1955, rollback the latest changes.
Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java 2007-04-10 12:42:08 UTC (rev 62210)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/jmx/test/RMIAdaptorUnitTestCase.java 2007-04-10 12:43:06 UTC (rev 62211)
@@ -21,11 +21,8 @@
*/
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,10 +31,9 @@
import org.jboss.test.JBossTestCase;
/**
- * Tests over the RMIAdaptor and the SerializablePolicy
+ * Tests over the RMIAdaptor
*
* @author <a href="mailto:dimitris at jboss.org">Dimitris Andreadis</a>
- * @author <a href="mailto:mageshbk at jboss.com">Magesh Kumar B</a>
* @version <tt>$Revision$</tt>
*/
public class RMIAdaptorUnitTestCase extends JBossTestCase
@@ -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