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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 3 18:17:47 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-09-03 18:17:47 -0400 (Mon, 03 Sep 2007)
New Revision: 65021

Modified:
   trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java
Log:
Add well know deployment names to the test

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-03 22:16:48 UTC (rev 65020)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/ProfileServiceUnitTestCase.java	2007-09-03 22:17:47 UTC (rev 65021)
@@ -22,6 +22,7 @@
 package org.jboss.test.profileservice.test;
 
 import java.util.Collection;
+import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
@@ -108,7 +109,41 @@
       ManagementView mgtView = getManagementView();
       Set<String> names = mgtView.getDeploymentNames();
       log.info("getDeploymentNames, "+names);
+      // Build a set of the simple deployment names
+      HashSet<String> simpleNames = new HashSet<String>();
+      for (String name : names)
+      {
+    	  int index = name.lastIndexOf('/');
+    	  String sname = name.substring(index+1);
+    	  simpleNames.add(sname);
+      }
       // Validate some well known deployments
+      String[] expectedNames = {
+         "jboss-service.xml",
+    		"client-deployer-beans.xml",
+         "jbossweb.deployer",
+    		"ear-deployer-beans.xml",
+    		"jbossws.deployer",
+    		"ejb-deployer-beans.xml",
+    		"ejb3.deployer",
+    		"jboss-aop-jboss5.deployer",
+    		"security-deployer-beans.xml",
+    		"jboss-jca.deployer",
+    		"hsqldb-ds.xml",
+    		"jboss-local-jdbc.rar",
+    		"jboss-xa-jdbc.rar",
+    		"jbossjca-service.xml",
+    		"jbossws.sar",
+    		"jms-ds.xml",
+    		"jms-ra.rar",
+    		"jmx-console.war",
+    		"jmx-invoker-service.xml",
+    		"jmx-remoting.sar",
+    		"jsr88-service.xml",
+    		"mail-service.xml"
+      };
+      for (String name : expectedNames)
+    	  assertTrue(name, simpleNames.contains(name));
    }
 
    /**




More information about the jboss-cvs-commits mailing list