[jboss-cvs] JBoss Messaging SVN: r3677 - trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 7 16:05:24 EST 2008


Author: timfox
Date: 2008-02-07 16:05:23 -0500 (Thu, 07 Feb 2008)
New Revision: 3677

Modified:
   trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptor.java
   trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptorB.java
Log:
Fixed tests


Modified: trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptor.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptor.java	2008-02-07 19:21:36 UTC (rev 3676)
+++ trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptor.java	2008-02-07 21:05:23 UTC (rev 3677)
@@ -7,11 +7,11 @@
 
 package org.jboss.messaging.core.remoting.impl.integration;
 
-import org.jboss.jms.exception.MessagingJMSException;
 import org.jboss.messaging.core.remoting.Interceptor;
 import org.jboss.messaging.core.remoting.wireformat.DeliverMessage;
 import org.jboss.messaging.core.remoting.wireformat.Packet;
 import org.jboss.messaging.util.Logger;
+import org.jboss.messaging.util.MessagingException;
 
 import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt;
 
@@ -33,13 +33,13 @@
       syncCounter.set(0);
    }
    
-   public void intercept(Packet packet) throws MessagingJMSException
+   public void intercept(Packet packet) throws MessagingException
    {
       log.info("DummyFilter packet = " + packet.getClass().getName());
       syncCounter.add(1);
       if (sendException)
       {
-         throw new MessagingJMSException("Test");
+         throw new MessagingException(MessagingException.INTERNAL_ERROR);
       }
       if (changeMessage)
       {

Modified: trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptorB.java
===================================================================
--- trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptorB.java	2008-02-07 19:21:36 UTC (rev 3676)
+++ trunk/tests/src/org/jboss/messaging/core/remoting/impl/integration/DummyInterceptorB.java	2008-02-07 21:05:23 UTC (rev 3677)
@@ -7,10 +7,10 @@
 
 package org.jboss.messaging.core.remoting.impl.integration;
 
-import org.jboss.jms.exception.MessagingJMSException;
 import org.jboss.messaging.core.remoting.Interceptor;
 import org.jboss.messaging.core.remoting.wireformat.Packet;
 import org.jboss.messaging.util.Logger;
+import org.jboss.messaging.util.MessagingException;
 
 import EDU.oswego.cs.dl.util.concurrent.SynchronizedInt;
 
@@ -31,7 +31,7 @@
       syncCounter.set(0);
    }
    
-   public void intercept(Packet packet) throws MessagingJMSException
+   public void intercept(Packet packet) throws MessagingException
    {
       syncCounter.add(1);
       log.info("DummyFilter packet = " + packet);




More information about the jboss-cvs-commits mailing list