diff options
Diffstat (limited to 'java/client/src')
| -rw-r--r-- | java/client/src/test/java/org/apache/qpid/testutil/QpidTestCase.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/java/client/src/test/java/org/apache/qpid/testutil/QpidTestCase.java b/java/client/src/test/java/org/apache/qpid/testutil/QpidTestCase.java index 21214146d6..ca9bdee514 100644 --- a/java/client/src/test/java/org/apache/qpid/testutil/QpidTestCase.java +++ b/java/client/src/test/java/org/apache/qpid/testutil/QpidTestCase.java @@ -137,9 +137,9 @@ public class QpidTestCase extends TestCase */ public void startBroker() throws Exception { - _logger.info("Starting broker"); + _logger.info("Starting broker: " + _shel + " " + _brokerPath + " " + _brokerParams + ""); Runtime rt = Runtime.getRuntime(); - _brokerProcess = rt.exec(_shel + " " + _brokerPath + " " + _brokerParams); + _brokerProcess = rt.exec(_shel + " " + _brokerPath + " " + _brokerParams + ""); BufferedReader reader = new BufferedReader(new InputStreamReader(_brokerProcess.getInputStream())); if (reader.ready()) { @@ -177,6 +177,11 @@ public class QpidTestCase extends TestCase _connectionFactory = null; } + public void shutdownServer() throws Exception + { + killBroker(); + setUp(); + } /** * we assume that the environment is correctly set * i.e. -Djava.naming.provider.url="..//example010.properties" |
