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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Apr 9 18:10:32 EDT 2008


Author: mark.spritzler
Date: 2008-04-09 18:10:31 -0400 (Wed, 09 Apr 2008)
New Revision: 71864

Modified:
   trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
Log:
Added assertion to check to see if the ManagedComponent is still in the Map by ComponentType after deleting the deployment

Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java	2008-04-09 21:56:24 UTC (rev 71863)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java	2008-04-09 22:10:31 UTC (rev 71864)
@@ -68,7 +68,7 @@
       ManagedComponent queue = mgtView.getComponent("/queue/DLQ", type);
       assertNotNull(queue);
       assertEquals("/queue/DLQ", queue.getName());
-      
+
    }
 
    public void testCreateQueue() throws Exception
@@ -88,6 +88,9 @@
       throws Exception
    {
       removeDeployment("testCreateQueue-service.xml");
+      ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
+	  ManagedComponent queue = getManagementView().getComponent("testCreateQueue", type);
+      assertNull(queue);
    }
 
    public void testCreateTopic() throws Exception
@@ -107,11 +110,14 @@
       throws Exception
    {
       removeDeployment("testCreateTopic-service.xml");
+      ComponentType type = KnownComponentTypes.JMSDestination.Topic.getType();
+      ManagedComponent topic = getManagementView().getComponent("testCreateTopic", type);
+      assertNull(topic);
    }
 
    @Override
    protected String getProfileName()
    {
-      return "profileservice";
-   }   
+      return "default";
+   }
 }




More information about the jboss-cvs-commits mailing list