[jboss-cvs] JBossAS SVN: r86417 - branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Mar 27 08:45:40 EDT 2009


Author: emuckenhuber
Date: 2009-03-27 08:45:40 -0400 (Fri, 27 Mar 2009)
New Revision: 86417

Modified:
   branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
Log:
[JBAS-6683] missing values in the topic template

Modified: branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
===================================================================
--- branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java	2009-03-27 10:43:48 UTC (rev 86416)
+++ branches/Branch_5_x/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java	2009-03-27 12:45:40 UTC (rev 86417)
@@ -21,7 +21,9 @@
  */
 package org.jboss.test.profileservice.test;
 
+import java.util.Arrays;
 import java.util.HashMap;
+import java.util.List;
 import java.util.Map;
 
 import junit.framework.Test;
@@ -52,15 +54,48 @@
    {
       TestSuite suite = new TestSuite();
 
+      suite.addTest(new JmsDestinationUnitTestCase("testQueueTemplate"));
+      suite.addTest(new JmsDestinationUnitTestCase("testTopicTemplate"));
       suite.addTest(new JmsDestinationUnitTestCase("testDLQ"));
       suite.addTest(new JmsDestinationUnitTestCase("testCreateQueue"));
       suite.addTest(new JmsDestinationUnitTestCase("testRemoveQueue"));
       suite.addTest(new JmsDestinationUnitTestCase("testCreateTopic"));
       suite.addTest(new JmsDestinationUnitTestCase("testRemoveTopic"));
 
+
       return suite;
+   }  
+
+   public void testQueueTemplate() throws Exception
+   {
+      DeploymentTemplateInfo info = getManagementView().getTemplate("QueueTemplate");
+      assertNotNull(info);
+      
+      Map<String, ManagedProperty> properties = info.getProperties();
+      assertNotNull(properties);
+      
+      List<String> items = Arrays.asList("JNDIName", "downCacheSize", "fullSize",
+            "clustered", "maxDeliveryAttempts", "maxSize", "messageCounterHistoryDayLimit",
+            "pageSize", "redeliveryDelay");
+
+      properties.keySet().containsAll(items);
    }
+   
+   public void testTopicTemplate() throws Exception
+   {
+      DeploymentTemplateInfo info = getManagementView().getTemplate("TopicTemplate");
+      assertNotNull(info);
+      
+      Map<String, ManagedProperty> properties = info.getProperties();
+      assertNotNull(properties);
+      
+      List<String> items = Arrays.asList("JNDIName", "downCacheSize", "fullSize",
+            "clustered", "maxDeliveryAttempts", "maxSize", "messageCounterHistoryDayLimit",
+            "pageSize", "redeliveryDelay");
 
+      properties.keySet().containsAll(items);
+   }
+   
    /**
     * Validate the default dead letter queue exists
     * @throws Exception




More information about the jboss-cvs-commits mailing list