diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2009-08-03 13:25:02 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2009-08-03 13:25:02 +0000 |
| commit | 220a82faf68f60ddb54ddf871f263f780f39293d (patch) | |
| tree | 7a4df7ff823d21adb3b1438bf728682ab6912fe0 /qpid/java | |
| parent | e72532f91ff54db52f3822897764625ee12344e1 (diff) | |
| download | qpid-python-220a82faf68f60ddb54ddf871f263f780f39293d.tar.gz | |
Updated AlertingTest to use new methods in Abstract super class
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@800364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java index f985530ca5..14eec8daff 100644 --- a/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java +++ b/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java @@ -34,7 +34,7 @@ import javax.jms.Queue; import javax.jms.Session; import java.io.File; -public class AlertingTest extends QpidTestCase +public class AlertingTest extends AbstractTestLogging { private String VIRTUALHOST = "test"; private Session _session; @@ -42,7 +42,6 @@ public class AlertingTest extends QpidTestCase private Queue _destination; private int _numMessages; - private LogMonitor _monitor; private static final int ALERT_LOG_WAIT_PERIOD = 5000; private static final String MESSAGE_COUNT_ALERT = "MESSAGE_COUNT_ALERT"; @@ -58,9 +57,6 @@ public class AlertingTest extends QpidTestCase // Update the configuration to make our virtualhost Persistent. makeVirtualHostPersistent(VIRTUALHOST); - //Create a log file monitor - _monitor = new LogMonitor(_outputFile); - _numMessages = 50; // Then we do the normal setup stuff like starting the broker, getting a connection etc. @@ -193,8 +189,7 @@ public class AlertingTest extends QpidTestCase assertEquals("Broker has invalid message count for test", 2, messageCount); // Ensure the alert has not occured yet - assertEquals("Alert has already occured", 0, - _monitor.findMatches(MESSAGE_COUNT_ALERT).size()); + assertLoggingNotYetOccured(MESSAGE_COUNT_ALERT); // Trigger the new value sendMessage(_session, _destination, 3); |
