summaryrefslogtreecommitdiff
path: root/java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java')
-rw-r--r--java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java b/java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java
index 9cde24dd92..81227b9540 100644
--- a/java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java
+++ b/java/client/src/test/java/org/apache/qpid/test/unit/client/forwardall/CombinedTest.java
@@ -22,9 +22,13 @@ package org.apache.qpid.test.unit.client.forwardall;
import junit.framework.TestCase;
import org.apache.qpid.testutil.VMBrokerSetup;
+import org.apache.qpid.server.queue.SimpleAMQQueue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import java.util.Set;
+import java.util.HashSet;
+
/**
* Runs the Service's and Client parts of the test in the same process
* as the broker
@@ -34,6 +38,7 @@ public class CombinedTest extends TestCase
private static final Logger _logger = LoggerFactory.getLogger(CombinedTest.class);
private int run = 0;
+
protected void setUp() throws Exception
{
super.setUp();
@@ -47,16 +52,16 @@ public class CombinedTest extends TestCase
public void testForwardAll() throws Exception
{
- while (run < 10)
+ while (run < 100)
{
int services = 2;
ServiceCreator.start("vm://:1", services);
-
+ Thread.sleep(100);
_logger.info("Starting " + ++run + " client...");
new Client("vm://:1", services).shutdownWhenComplete();
-
+ ServiceCreator.closeAll();
_logger.info("Completed " + run + " successfully!");
}
}