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 | 4b30c994eb0b8397266b0ae96bd290602abd3a5b (patch) | |
| tree | 9fef38e12f29c4b5eea6ed15e316d3268d48dc35 /java | |
| parent | a8c545bf696bc38284507b96e38c9f38d5b28fab (diff) | |
| download | qpid-python-4b30c994eb0b8397266b0ae96bd290602abd3a5b.tar.gz | |
Updated AlertingTest to use new methods in Abstract super class
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@800364 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java b/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java index f985530ca5..14eec8daff 100644 --- a/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java +++ b/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); |
