You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ri...@apache.org on 2009/08/03 15:25:02 UTC
svn commit: r800364 -
/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
Author: ritchiem
Date: Mon Aug 3 13:25:02 2009
New Revision: 800364
URL: http://svn.apache.org/viewvc?rev=800364&view=rev
Log:
Updated AlertingTest to use new methods in Abstract super class
Modified:
qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
Modified: qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java?rev=800364&r1=800363&r2=800364&view=diff
==============================================================================
--- qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java (original)
+++ qpid/trunk/qpid/java/systests/src/main/java/org/apache/qpid/server/logging/AlertingTest.java Mon Aug 3 13:25:02 2009
@@ -34,7 +34,7 @@
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 @@
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 @@
// 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 @@
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);
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org