[jboss-cvs] JBoss Messaging SVN: r6075 - trunk/tests/src/org/jboss/messaging/tests/unit/core/management/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Mar 13 09:13:18 EDT 2009
Author: jmesnil
Date: 2009-03-13 09:13:18 -0400 (Fri, 13 Mar 2009)
New Revision: 6075
Modified:
trunk/tests/src/org/jboss/messaging/tests/unit/core/management/impl/QueueControlTest.java
Log:
QueueControl unit tests
Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/management/impl/QueueControlTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/management/impl/QueueControlTest.java 2009-03-13 12:45:31 UTC (rev 6074)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/management/impl/QueueControlTest.java 2009-03-13 13:13:18 UTC (rev 6075)
@@ -249,11 +249,10 @@
verifyMockedAttributes();
}
- public void testGetDLQ() throws Exception
+ public void testGetDeadLetterAddress() throws Exception
{
final String dlqName = randomString();
- expect(queue.getName()).andReturn(queueName);
AddressSettings addressSettings = new AddressSettings()
{
@Override
@@ -262,7 +261,7 @@
return new SimpleString(dlqName);
}
};
- expect(repository.getMatch(queueName.toString())).andReturn(addressSettings);
+ expect(repository.getMatch(address)).andReturn(addressSettings);
replayMockedAttributes();
@@ -272,11 +271,10 @@
verifyMockedAttributes();
}
- public void testGetExpiryQueue() throws Exception
+ public void testGetExpiryAddress() throws Exception
{
final String expiryQueueName = randomString();
- expect(queue.getName()).andReturn(queueName);
AddressSettings addressSettings = new AddressSettings()
{
@Override
@@ -285,7 +283,7 @@
return new SimpleString(expiryQueueName);
}
};
- expect(repository.getMatch(queueName.toString())).andReturn(addressSettings);
+ expect(repository.getMatch(address)).andReturn(addressSettings);
replayMockedAttributes();
More information about the jboss-cvs-commits
mailing list