[jboss-cvs] JBossAS SVN: r82016 - trunk/testsuite/src/main/org/jboss/test/profileservice/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Dec 3 13:22:36 EST 2008
Author: scott.stark at jboss.org
Date: 2008-12-03 13:22:36 -0500 (Wed, 03 Dec 2008)
New Revision: 82016
Modified:
trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
Log:
JBAS-6270, make the bootstrap deployment names available
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java 2008-12-03 18:11:57 UTC (rev 82015)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java 2008-12-03 18:22:36 UTC (rev 82016)
@@ -51,6 +51,7 @@
import org.jboss.managed.api.annotation.ManagementProperty;
import org.jboss.managed.api.annotation.ViewUse;
import org.jboss.metatype.api.types.GenericMetaType;
+import org.jboss.metatype.api.types.MapCompositeMetaType;
import org.jboss.metatype.api.types.MetaType;
import org.jboss.metatype.api.types.SimpleMetaType;
import org.jboss.metatype.api.values.CompositeValueSupport;
@@ -165,7 +166,12 @@
log.info("Deployment simple names: " + simpleNames);
// Validate some well known deployments
String[] expectedNames = {
- // TODO: JBAS-5689 "conf/bootstrap.xml",
+ "conf/bootstrap/aop.xml",
+ "conf/bootstrap/bindings.xml",
+ "conf/bootstrap/classloader.xml",
+ "conf/bootstrap/deployers.xml",
+ "conf/bootstrap/jmx.xml",
+ "conf/bootstrap/profile-repository.xml",
"conf/jboss-service.xml",
"deployers/jbossweb.deployer/",
"deployers/ear-deployer-jboss-beans.xml",
@@ -180,8 +186,8 @@
"deploy/jboss-xa-jdbc.rar",
"deploy/jca-jboss-beans.xml",
"deploy/jbossws.sar/",
- "deploy/messaging/connection-factories-service.xml",
- "deploy/messaging/destinations-service.xml",
+ "deploy/messaging/connection-factories-service.xml",
+ "deploy/messaging/destinations-service.xml",
"deploy/jms-ra.rar",
"deploy/jmx-console.war/",
"deploy/jmx-invoker-service.xml",
@@ -198,6 +204,18 @@
assertEquals("There are missing names: "+missingNames + ", available: " + simpleNames, 0, missingNames.size());
}
+ public void testManagedDeployments()
+ throws Exception
+ {
+ ManagementView mgtView = getManagementView();
+ Set<String> names = mgtView.getDeploymentNames();
+ for(String name : names)
+ {
+ ManagedDeployment deployment = mgtView.getDeployment(name, null);
+ log.info(deployment);
+ }
+ }
+
/**
* Test that ignored deployments are not deployed.
* e.g. ignore.war.bak in the deploy dir
@@ -768,7 +786,16 @@
//ApplicationManagedSecurityMetaData secDomain = new ApplicationManagedSecurityMetaData();
//props.get("security-domain").setValue(secDomain);
- createComponentTest("NoTxConnectionFactoryTemplate", propValues, "testNoTxCf", new ComponentType("ConnectionFactory", "NoTx"), jndiName);
+ ComponentType compType = new ComponentType("ConnectionFactory", "NoTx");
+ createComponentTest("NoTxConnectionFactoryTemplate", propValues, "testNoTxCf", compType, jndiName);
+
+ // Validate the config-property
+ ManagementView mgtView = getManagementView();
+ ManagedComponent dsMC = getManagedComponent(mgtView, compType, jndiName);
+ ManagedProperty configProperty = dsMC.getProperty("config-property");
+ assertNotNull(configProperty);
+ MetaValue value = configProperty.getValue();
+ assertTrue("MapCompositeMetaType", value.getMetaType() instanceof MapCompositeMetaType);
}
/**
More information about the jboss-cvs-commits
mailing list