[jboss-cvs] JBossAS SVN: r74700 - trunk/testsuite/src/main/org/jboss/test/profileservice/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 17 12:05:19 EDT 2008
Author: alesj
Date: 2008-06-17 12:05:19 -0400 (Tue, 17 Jun 2008)
New Revision: 74700
Modified:
trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
Log:
AssertNull msg info.
Modified: trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java 2008-06-17 16:02:05 UTC (rev 74699)
+++ trunk/testsuite/src/main/org/jboss/test/profileservice/test/JmsDestinationUnitTestCase.java 2008-06-17 16:05:19 UTC (rev 74700)
@@ -36,8 +36,7 @@
* @author <a href="mailto:alex at jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision: $</tt>
*/
-public class JmsDestinationUnitTestCase
- extends AbstractProfileServiceTest
+public class JmsDestinationUnitTestCase extends AbstractProfileServiceTest
{
public JmsDestinationUnitTestCase(String s)
{
@@ -68,7 +67,6 @@
ManagedComponent queue = mgtView.getComponent("/queue/DLQ", type);
assertNotNull(queue);
assertEquals("/queue/DLQ", queue.getName());
-
}
public void testCreateQueue() throws Exception
@@ -77,20 +75,18 @@
String jndiName = getName();
propValues.put("JNDIName", jndiName);
ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
- createComponentTest("QueueTemplate", propValues, getName(),
- type, jndiName);
+ createComponentTest("QueueTemplate", propValues, getName(), type, jndiName);
ManagedComponent queue = activeView.getComponent("testCreateQueue", type);
assertNotNull(queue);
assertEquals("testCreateQueue", queue.getName());
}
- public void testRemoveQueue()
- throws Exception
+ public void testRemoveQueue() throws Exception
{
removeDeployment("testCreateQueue-service.xml");
ComponentType type = KnownComponentTypes.JMSDestination.Queue.getType();
- ManagedComponent queue = getManagementView().getComponent("testCreateQueue", type);
- assertNull(queue);
+ ManagedComponent queue = getManagementView().getComponent("testCreateQueue", type);
+ assertNull("queue should be removed" + queue, queue);
}
public void testCreateTopic() throws Exception
@@ -99,20 +95,18 @@
String jndiName = getName();
propValues.put("JNDIName", jndiName);
ComponentType type = KnownComponentTypes.JMSDestination.Topic.getType();
- createComponentTest("TopicTemplate", propValues, getName(),
- type, jndiName);
+ createComponentTest("TopicTemplate", propValues, getName(), type, jndiName);
ManagedComponent topic = activeView.getComponent("testCreateTopic", type);
assertNotNull(topic);
assertEquals("testCreateTopic", topic.getName());
}
- public void testRemoveTopic()
- throws Exception
+ public void testRemoveTopic() throws Exception
{
removeDeployment("testCreateTopic-service.xml");
ComponentType type = KnownComponentTypes.JMSDestination.Topic.getType();
ManagedComponent topic = getManagementView().getComponent("testCreateTopic", type);
- assertNull(topic);
+ assertNull("topic should be removed " + topic, topic);
}
@Override
More information about the jboss-cvs-commits
mailing list