Author: borges
Date: 2011-12-06 05:08:23 -0500 (Tue, 06 Dec 2011)
New Revision: 11848
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
Log:
Do not declare 'throws Exception' when we don't throw anything.
Modified:
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java
===================================================================
---
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2011-12-06
04:13:32 UTC (rev 11847)
+++
trunk/tests/integration-tests/src/test/java/org/hornetq/tests/integration/cluster/distribution/ClusterTestBase.java 2011-12-06
10:08:23 UTC (rev 11848)
@@ -551,7 +551,7 @@
}
}
- protected void removeConsumer(final int consumerID) throws Exception
+ protected void removeConsumer(final int consumerID)
{
ConsumerHolder holder = consumers[consumerID];
@@ -560,13 +560,12 @@
throw new IllegalArgumentException("No consumer at " + consumerID);
}
- holder.consumer.close();
- holder.session.close();
+ holder.close();
consumers[consumerID] = null;
}
- protected void closeAllConsumers() throws Exception
+ protected void closeAllConsumers()
{
for (int i = 0; i < consumers.length; i++)
{
@@ -580,7 +579,7 @@
}
}
- protected void closeAllSessionFactories() throws Exception
+ protected void closeAllSessionFactories()
{
for (int i = 0; i < sfs.length; i++)
{
@@ -589,7 +588,7 @@
}
}
- protected void closeAllServerLocatorsFactories() throws Exception
+ protected void closeAllServerLocatorsFactories()
{
for (int i = 0; i < locators.length; i++)
{
Show replies by date