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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 5 16:08:27 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-09-05 16:08:27 -0400 (Wed, 05 Sep 2007)
New Revision: 65122

Modified:
   trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
Log:
Add a TODO: JBAS-4678

Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java	2007-09-05 19:53:13 UTC (rev 65121)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java	2007-09-05 20:08:27 UTC (rev 65122)
@@ -328,12 +328,25 @@
    public void testDefaultDSOps()
       throws Exception
    {
+      log.info("+++ testDefaultDSOps");
       ManagementView mgtView = getManagementView();
       ComponentType type = new ComponentType("DataSource", "LocalTx");
       ManagedComponent hsqldb = getManagedComponent(mgtView, type, "DefaultDS");
       Set<ManagedOperation> ops = hsqldb.getOperations();
+      log.info("DefaultDS ops: "+ops);
       assertNotNull("Set<ManagedOperation>", ops);
       assertTrue("Set<ManagedOperation> > 0", ops.size() > 0);
+      ManagedOperation listFormatttedSubPoolStatistics = null;
+      for (ManagedOperation op : ops)
+      {
+         if (op.getName().equals("listFormatttedSubPoolStatistics"))
+            listFormatttedSubPoolStatistics = op;
+      }
+      assertNotNull("listFormatttedSubPoolStatistics", listFormatttedSubPoolStatistics);
+      MetaValue[] params = {};
+      // TODO: JBAS-4678 this should not be null
+      Object result = listFormatttedSubPoolStatistics.invoke(params);
+      log.info("listFormatttedSubPoolStatistics.invoke: "+result);
    }
 
    /**




More information about the jboss-cvs-commits mailing list