[jboss-cvs] JBoss Messaging SVN: r4618 - trunk/tests/src/org/jboss/messaging/tests/unit/core/server/impl.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 27 13:10:48 EDT 2008
Author: timfox
Date: 2008-06-27 13:10:47 -0400 (Fri, 27 Jun 2008)
New Revision: 4618
Modified:
trunk/tests/src/org/jboss/messaging/tests/unit/core/server/impl/ServerSessionImplTest.java
Log:
Fixed test
Modified: trunk/tests/src/org/jboss/messaging/tests/unit/core/server/impl/ServerSessionImplTest.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/tests/unit/core/server/impl/ServerSessionImplTest.java 2008-06-27 16:26:45 UTC (rev 4617)
+++ trunk/tests/src/org/jboss/messaging/tests/unit/core/server/impl/ServerSessionImplTest.java 2008-06-27 17:10:47 UTC (rev 4618)
@@ -1325,7 +1325,7 @@
Binding binding = createStrictMock(Binding.class);
expect(po.containsDestination(address)).andReturn(false);
ss.check(address, CheckType.CREATE, conn);
- expectLastCall().andThrow(new MessagingException());
+ expectLastCall().andThrow(new MessagingException(MessagingException.SECURITY_EXCEPTION));
replay(conn, returner, sm, po, qs, rm, ss, pd, executor, binding);
try
{
@@ -1334,7 +1334,7 @@
}
catch (MessagingException e)
{
- assertEquals(e.getCode(), MessagingException.QUEUE_DOES_NOT_EXIST);
+ assertEquals(e.getCode(), MessagingException.SECURITY_EXCEPTION);
}
verify(conn, returner, sm, po, qs, rm, ss, pd, executor, binding);
}
More information about the jboss-cvs-commits
mailing list