summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2009-08-13 11:08:29 +0000
committerMartin Ritchie <ritchiem@apache.org>2009-08-13 11:08:29 +0000
commitfa6a10c6d12036b9f97d217f351d1c0896407ce4 (patch)
tree2cd675d81d18352fa6e9f0f52d6aa039c400b750 /java
parent1dd1ac62fd1dcc17f68689af285b5f8a9a7b68b0 (diff)
downloadqpid-python-fa6a10c6d12036b9f97d217f351d1c0896407ce4.tar.gz
QPID-2002 : Fixed issue where the BLT.defaultLog4j test failed to startup.
Cause is that the broker.ready 'BRK-1004' message goes to qpid.log not standard out. Updating the broker.start string to be a value that is always logged to standard out will ensure we know when the test is ready git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@803841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java13
-rw-r--r--java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java2
2 files changed, 12 insertions, 3 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java b/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java
index d417349c7f..5a28f18e80 100644
--- a/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java
+++ b/java/systests/src/main/java/org/apache/qpid/server/logging/BrokerLoggingTest.java
@@ -154,10 +154,19 @@ public class BrokerLoggingTest extends AbstractTestLogging
//Remove test Log4j config from the commandline
_broker = _broker.substring(0, _broker.indexOf("-l"));
+ // As a result we will pick up the broker default and will right
+ // data to the standard qpid.log file. Which means that the start
+ // broker process will not be monitoring the right file for startup.
+
+ // Set the broker commit ready string to check for the _log4j default
+ System.setProperty(BROKER_READY, "Qpid Broker Ready");
+
startBroker();
- // Now we can create the monitor as _outputFile will now be defined
- _monitor = new LogMonitor(_outputFile);
+ // Now we can create the monitor on the qpid.log that is defined in
+ // the default log4j configuration
+ _monitor = new LogMonitor(new File(System.getProperty("QPID_WORK") +
+ "/log/qpid.log"));
// Ensure broker has fully started up.
getConnection();
diff --git a/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java b/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
index 02c8ed2c10..b6ee6083b2 100644
--- a/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
+++ b/java/systests/src/main/java/org/apache/qpid/test/utils/QpidTestCase.java
@@ -145,7 +145,7 @@ public class QpidTestCase extends TestCase
private static final String BROKER = "broker";
private static final String BROKER_CLEAN = "broker.clean";
private static final String BROKER_VERSION = "broker.version";
- private static final String BROKER_READY = "broker.ready";
+ protected static final String BROKER_READY = "broker.ready";
private static final String BROKER_STOPPED = "broker.stopped";
private static final String TEST_OUTPUT = "test.output";