[jboss-cvs] JBossAS SVN: r88105 - branches/Branch_5_x/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 13:46:19 EDT 2009
Author: bstansberry at jboss.com
Date: 2009-05-01 13:46:19 -0400 (Fri, 01 May 2009)
New Revision: 88105
Modified:
branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java
Log:
Cleanup
Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java 2009-05-01 16:37:58 UTC (rev 88104)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/cluster/defaultcfg/test/ClusterPartitionManagedObjectsTestCase.java 2009-05-01 17:46:19 UTC (rev 88105)
@@ -30,13 +30,11 @@
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;
import org.jboss.managed.api.ManagedOperation;
import org.jboss.managed.api.ManagedProperty;
-import org.jboss.profileservice.spi.ProfileKey;
import org.jboss.profileservice.spi.ProfileService;
import org.jboss.test.JBossClusteredTestCase;
import org.jboss.virtual.VFS;
@@ -64,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);
@@ -123,8 +116,6 @@
{
if( activeView == null )
{
- String profileName = getProfileName();
-
String[] urls = getNamingURLs();
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
@@ -134,7 +125,6 @@
ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
activeView = ps.getViewManager();
- ProfileKey defaultKey = new ProfileKey(profileName);
// Init the VFS to setup the vfs* protocol handlers
VFS.init();
}
@@ -146,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