activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1424436 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java
Date Thu, 20 Dec 2012 12:45:13 GMT
Author: dejanb
Date: Thu Dec 20 12:45:13 2012
New Revision: 1424436

URL: http://svn.apache.org/viewvc?rev=1424436&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-4222 - remove System.out.println from the test

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java?rev=1424436&r1=1424435&r2=1424436&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java (original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/bugs/AMQ4222Test.java Thu
Dec 20 12:45:13 2012
@@ -23,6 +23,8 @@ import org.apache.activemq.command.Activ
 import org.apache.activemq.command.ProducerId;
 import org.apache.activemq.transport.vm.VMTransportFactory;
 import org.apache.activemq.util.Wait;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 import javax.jms.Connection;
 import javax.jms.*;
@@ -37,6 +39,8 @@ import java.util.concurrent.TimeUnit;
  */
 public class AMQ4222Test extends TestSupport {
 
+    private static final Logger LOG = LoggerFactory.getLogger(AMQ4222Test.class);
+
     protected BrokerService brokerService;
 
     @Override
@@ -84,7 +88,7 @@ public class AMQ4222Test extends TestSup
             public void onMessage(Message message) {
                 try {
                     if (message instanceof TextMessage) {
-                        System.out.println("You got a message: " + ((TextMessage) message).getText());
+                        LOG.info("You got a message: " + ((TextMessage) message).getText());
                         countDownLatch.countDown();
                     }
                 } catch (JMSException e) {
@@ -107,7 +111,7 @@ public class AMQ4222Test extends TestSup
                 try {
                     consumerProducer.send(message.getJMSReplyTo(), message);
                 } catch (JMSException e) {
-                    System.out.println("error sending a response on the temp queue");
+                    LOG.error("error sending a response on the temp queue");
                     e.printStackTrace();
                 }
             }



Mime
View raw message