summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2008-10-03 09:18:46 +0000
committerMartin Ritchie <ritchiem@apache.org>2008-10-03 09:18:46 +0000
commit9b99bf71e6f2ee38cb1a18cf6100923149393172 (patch)
treef5b9cc78f039730bda5a50baac7edbd2d93a20f8 /qpid/java
parenteae2ce15cefbdc349a7e741a7fe8f20aab5fd266 (diff)
downloadqpid-python-9b99bf71e6f2ee38cb1a18cf6100923149393172.tar.gz
QPID-1266 : Updates based on review
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@701326 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java7
-rw-r--r--qpid/java/broker/src/test/java/org/apache/qpid/server/queue/SimpleAMQQueueThreadPoolTest.java14
2 files changed, 5 insertions, 16 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
index 6631bc3559..9b196e4e3d 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
@@ -1115,13 +1115,6 @@ public class SimpleAMQQueue implements AMQQueue, Subscription.StateListener
{
ReferenceCountingExecutorService.getInstance().releaseExecutorService();
}
- else
- {
- if(_logger.isDebugEnabled())
- {
- _logger.debug("Queue " + getName() + " already stopped");
- }
- }
}
public void deliverAsync()
diff --git a/qpid/java/broker/src/test/java/org/apache/qpid/server/queue/SimpleAMQQueueThreadPoolTest.java b/qpid/java/broker/src/test/java/org/apache/qpid/server/queue/SimpleAMQQueueThreadPoolTest.java
index 106ed8c941..f76c652793 100644
--- a/qpid/java/broker/src/test/java/org/apache/qpid/server/queue/SimpleAMQQueueThreadPoolTest.java
+++ b/qpid/java/broker/src/test/java/org/apache/qpid/server/queue/SimpleAMQQueueThreadPoolTest.java
@@ -26,14 +26,14 @@ import org.apache.qpid.pool.ReferenceCountingExecutorService;
import org.apache.qpid.server.virtualhost.VirtualHost;
import org.apache.qpid.server.registry.ApplicationRegistry;
+import org.apache.qpid.AMQException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class SimpleAMQQueueThreadPoolTest extends TestCase
{
- private static final Logger _logger = LoggerFactory.getLogger(VirtualHost.class);
- public void test()
+ public void test() throws AMQException
{
VirtualHost test = ApplicationRegistry.getInstance(1).getVirtualHostRegistry().getVirtualHost("test");
@@ -50,14 +50,10 @@ public class SimpleAMQQueueThreadPoolTest extends TestCase
assertEquals("References still exist", 0, ReferenceCountingExecutorService.getInstance().getReferenceCount());
assertTrue("Stop did not clean up.", ReferenceCountingExecutorService.getInstance().getPool().isShutdown());
-
}
- catch (Exception e)
+ finally
{
- e.printStackTrace();
- fail(e.getCause() == null ? e.getMessage() : e.getCause().getMessage());
- }
-
- ApplicationRegistry.remove(1);
+ ApplicationRegistry.remove(1);
+ }
}
}