[jboss-jira] [JBoss JIRA] Updated: (JBAS-5374) Add additional assertions in Delete Unit test in testsuite to check if ManagedComponent still exists after a delete.

Mark Spritzler (JIRA) jira-events at lists.jboss.org
Fri Apr 4 22:40:24 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBAS-5374?page=all ]

Mark Spritzler updated JBAS-5374:
---------------------------------

    Description: 
Change the Delete tests to

public void testRemoveQueue()
      throws Exception
   {
      removeDeployment("testCreateQueue-service.xml");
      ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
	  ManagedComponent queue = getManagementView().getComponent("testCreateQueue", type);
      assertNull(queue);
   }

   public void testRemoveTopic()
      throws Exception
   {
      removeDeployment("testCreateTopic-service.xml");
      ComponentType type = KnownComponentTypes.JMSDestination.Topic.getType();
      ManagedComponent topic = getManagementView().getComponent("testCreateTopic", type);
      assertNull(topic);
   }

> Add additional assertions in Delete Unit test in testsuite to check if ManagedComponent still exists after a delete.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-5374
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5374
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Mark Spritzler
>
> Change the Delete tests to
> public void testRemoveQueue()
>       throws Exception
>    {
>       removeDeployment("testCreateQueue-service.xml");
>       ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
> 	  ManagedComponent queue = getManagementView().getComponent("testCreateQueue", type);
>       assertNull(queue);
>    }
>    public void testRemoveTopic()
>       throws Exception
>    {
>       removeDeployment("testCreateTopic-service.xml");
>       ComponentType type = KnownComponentTypes.JMSDestination.Topic.getType();
>       ManagedComponent topic = getManagementView().getComponent("testCreateTopic", type);
>       assertNull(topic);
>    }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list