activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r467692 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
Date Wed, 25 Oct 2006 16:00:00 GMT
Author: chirino
Date: Wed Oct 25 08:59:59 2006
New Revision: 467692

URL: http://svn.apache.org/viewvc?view=rev&rev=467692
Log:
avoid println in the console output

Modified:
    incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java

Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
URL: http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java?view=diff&rev=467692&r1=467691&r2=467692
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/tcp/TransportUriTest.java
Wed Oct 25 08:59:59 2006
@@ -33,7 +33,7 @@
 
     public void testUriOptionsWork() throws Exception {
         String uri = bindAddress + postfix;
-        System.out.println("Connecting via: " + uri);
+//        System.out.println("Connecting via: " + uri);
 
         connection = new ActiveMQConnectionFactory(uri).createConnection();
         connection.start();
@@ -41,30 +41,28 @@
 
     public void testBadVersionNumberDoesNotWork() throws Exception {
         String uri = bindAddress + postfix + "&minmumWireFormatVersion=65535";
-        System.out.println("Connecting via: " + uri);
+//        System.out.println("Connecting via: " + uri);
 
         try {
             connection = new ActiveMQConnectionFactory(uri).createConnection();
             connection.start();
             fail("Should have thrown an exception!");
         }
-        catch (Exception e) {
-            System.out.println("Caught expected exception: " + e);
+        catch (Exception expected) {
         }
     }
 
 
     public void testBadPropertyNameFails() throws Exception {
         String uri = bindAddress + postfix + "&cheese=abc";
-        System.out.println("Connecting via: " + uri);
+//        System.out.println("Connecting via: " + uri);
 
         try {
             connection = new ActiveMQConnectionFactory(uri).createConnection();
             connection.start();
             fail("Should have thrown an exception!");
         }
-        catch (Exception e) {
-            System.out.println("Caught expected exception: " + e);
+        catch (Exception expected) {
         }
     }
 



Mime
View raw message