[jboss-cvs] JBossAS SVN: r70694 - trunk/testsuite/src/main/org/jboss/test/profileservice/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Mar 10 14:39:34 EDT 2008
Author: scott.stark at jboss.org
Date: 2008-03-10 14:39:34 -0400 (Mon, 10 Mar 2008)
New Revision: 70694
Modified:
trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
Log:
Add a testDLQ
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java 2008-03-10 18:28:06 UTC (rev 70693)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java 2008-03-10 18:39:34 UTC (rev 70694)
@@ -25,6 +25,7 @@
import java.util.HashMap;
import java.io.Serializable;
import org.jboss.deployers.spi.management.KnownComponentTypes;
+import org.jboss.deployers.spi.management.ManagementView;
import org.jboss.managed.api.ComponentType;
import org.jboss.managed.api.ManagedComponent;
@@ -55,6 +56,20 @@
return suite;
}
+ /**
+ * Validate the default dead letter queue exists
+ * @throws Exception
+ */
+ public void testDLQ() throws Exception
+ {
+ ManagementView mgtView = getManagementView();
+ ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
+ ManagedComponent queue = mgtView.getComponent("DLQ", type);
+ assertNotNull(queue);
+ assertEquals("DLQ", queue.getName());
+
+ }
+
public void testCreateQueue() throws Exception
{
Map<String, Serializable> propValues = new HashMap<String, Serializable>();
More information about the jboss-cvs-commits
mailing list