mirror of https://github.com/apache/activemq.git
avoid println in the console output
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@467692 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9ba6fcc40f
commit
7d54de6504
|
@ -33,7 +33,7 @@ public class TransportUriTest extends EmbeddedBrokerTestSupport {
|
||||||
|
|
||||||
public void testUriOptionsWork() throws Exception {
|
public void testUriOptionsWork() throws Exception {
|
||||||
String uri = bindAddress + postfix;
|
String uri = bindAddress + postfix;
|
||||||
System.out.println("Connecting via: " + uri);
|
// System.out.println("Connecting via: " + uri);
|
||||||
|
|
||||||
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
||||||
connection.start();
|
connection.start();
|
||||||
|
@ -41,30 +41,28 @@ public class TransportUriTest extends EmbeddedBrokerTestSupport {
|
||||||
|
|
||||||
public void testBadVersionNumberDoesNotWork() throws Exception {
|
public void testBadVersionNumberDoesNotWork() throws Exception {
|
||||||
String uri = bindAddress + postfix + "&minmumWireFormatVersion=65535";
|
String uri = bindAddress + postfix + "&minmumWireFormatVersion=65535";
|
||||||
System.out.println("Connecting via: " + uri);
|
// System.out.println("Connecting via: " + uri);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
||||||
connection.start();
|
connection.start();
|
||||||
fail("Should have thrown an exception!");
|
fail("Should have thrown an exception!");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception expected) {
|
||||||
System.out.println("Caught expected exception: " + e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void testBadPropertyNameFails() throws Exception {
|
public void testBadPropertyNameFails() throws Exception {
|
||||||
String uri = bindAddress + postfix + "&cheese=abc";
|
String uri = bindAddress + postfix + "&cheese=abc";
|
||||||
System.out.println("Connecting via: " + uri);
|
// System.out.println("Connecting via: " + uri);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
connection = new ActiveMQConnectionFactory(uri).createConnection();
|
||||||
connection.start();
|
connection.start();
|
||||||
fail("Should have thrown an exception!");
|
fail("Should have thrown an exception!");
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception expected) {
|
||||||
System.out.println("Caught expected exception: " + e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue