[jboss-cvs] JBossAS SVN: r85254 - trunk/testsuite/src/main/org/jboss/test/profileservice/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Mar 4 16:04:14 EST 2009
Author: emuckenhuber
Date: 2009-03-04 16:04:14 -0500 (Wed, 04 Mar 2009)
New Revision: 85254
Modified:
trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
Log:
fix ProfileServiceUnitTestCase
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java 2009-03-04 20:39:41 UTC (rev 85253)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java 2009-03-04 21:04:14 UTC (rev 85254)
@@ -28,6 +28,7 @@
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
@@ -77,6 +78,16 @@
/** The profileservice server name. */
public static final String PROFILESERVICE_SERVER_NAME = "profileservice";
+ private static final List<String> platformBeans = new ArrayList<String>();
+
+ static
+ {
+ platformBeans.add("JDK PlatformMBeans");
+ platformBeans.add("GarbageCollectorMXBeans");
+ platformBeans.add("MemoryManagerMXBeans");
+ platformBeans.add("MemoryPoolMXBeans");
+ }
+
/**
* We need to define the order in which tests runs
* @return
@@ -253,6 +264,9 @@
Set<String> names = mgtView.getDeploymentNames();
for(String name : names)
{
+ if(platformBeans.contains(name))
+ continue;
+
URL url = new URL(name);
URI uri = new URI(name);
VFS.getRoot(uri);
@@ -667,7 +681,6 @@
{
String jndiName = "TestLocalTxDs";
Map<String, MetaValue> propValues = new HashMap<String, MetaValue>();
- propValues.put("track-connection-by-tx", SimpleValueSupport.wrap(Boolean.TRUE));
addNonXaDsProperties(propValues, jndiName, "jboss-local-jdbc.rar", "javax.sql.DataSource");
createComponentTest("LocalTxDataSourceTemplate", propValues, "testLocalTxDs",
KnownComponentTypes.DataSourceTypes.LocalTx.getType(), jndiName);
@@ -904,7 +917,7 @@
propValues.put("no-tx-separate-pools", SimpleValueSupport.wrap(Boolean.TRUE));
propValues.put("statistics-formatter", SimpleValueSupport.wrap("org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter"));
propValues.put("isSameRM-override-value", SimpleValueSupport.wrap(Boolean.FALSE));
- propValues.put("track-connection-by-tx", SimpleValueSupport.wrap(Boolean.FALSE));
+ propValues.put("track-connection-by-tx", SimpleValueSupport.wrap(Boolean.TRUE));
propValues.put("type-mapping", SimpleValueSupport.wrap("Hypersonic SQL"));
// todo: config-property
// todo: security-domain
More information about the jboss-cvs-commits
mailing list