[jboss-cvs] JBossAS SVN: r88106 - trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 1 14:10:38 EDT 2009


Author: bstansberry at jboss.com
Date: 2009-05-01 14:10:38 -0400 (Fri, 01 May 2009)
New Revision: 88106

Modified:
   trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java
Log:
Cleanup

Modified: trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java	2009-05-01 17:46:19 UTC (rev 88105)
+++ trunk/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java	2009-05-01 18:10:38 UTC (rev 88106)
@@ -30,7 +30,6 @@
 import javax.naming.InitialContext;
 
 import org.jboss.deployers.spi.management.ManagementView;
-import org.jboss.deployers.spi.management.NameMatcher;
 import org.jboss.managed.api.ComponentType;
 import org.jboss.managed.api.ManagedComponent;
 import org.jboss.managed.api.ManagedObject;
@@ -63,12 +62,7 @@
    public void testHAPartition()
       throws Exception
    {
-      ManagementView mgtView = getManagementView();
-//      ComponentType type = new ComponentType("MCBean", "Clustering");
-//      Set<ManagedComponent> mcs = mgtView.getMatchingComponents(this.partitionName, type, 
-//            new NameTypeQualifiedNameMatcher("HAPartition"));
-//      assertEquals("There is just one HAPartition component", 1, mcs.size());
-//      ManagedComponent mc = mcs.iterator().next();     
+      ManagementView mgtView = getManagementView(); 
       ComponentType type = new ComponentType("MCBean", "HAPartition");
       ManagedComponent mc = mgtView.getComponent(this.partitionName, type);
       validateHAPartitionManagedComponent(mc);
@@ -122,8 +116,6 @@
    {
       if( activeView == null )
       {
-         String profileName = getProfileName(); 
-         
          String[] urls = getNamingURLs();
          Properties env = new Properties();
          env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
@@ -144,20 +136,5 @@
    {
       return "cluster-udp-0";
    }
-   
-   private static class NameTypeQualifiedNameMatcher implements NameMatcher<ManagedComponent>
-   {
-      private final String nameType;
-      
-      public NameTypeQualifiedNameMatcher(String nameType)
-      {
-         this.nameType = nameType;
-      }
 
-      public boolean matches(ManagedComponent comp, String name)
-      {
-         return name.equals(comp.getName()) && nameType.equals(comp.getNameType());
-      }      
-   }
-
 }




More information about the jboss-cvs-commits mailing list