Author: ron.sigal(a)jboss.com
Date: 2011-01-17 23:12:20 -0500 (Mon, 17 Jan 2011)
New Revision: 6205
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/identity/ServerIdentityTestCase.java
Log:
JBREM-1144: Reset log level to TRACE.
Modified:
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/identity/ServerIdentityTestCase.java
===================================================================
---
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/identity/ServerIdentityTestCase.java 2011-01-12
01:07:04 UTC (rev 6204)
+++
remoting2/branches/2.2/src/tests/org/jboss/test/remoting/connection/identity/ServerIdentityTestCase.java 2011-01-18
04:12:20 UTC (rev 6205)
@@ -93,7 +93,7 @@
ps = new PrintStream(baosErr);
setErr(ps);
- Logger.getLogger("org.jboss.remoting").setLevel(XLevel.DEBUG);
+ Logger.getLogger("org.jboss.remoting").setLevel(XLevel.TRACE);
Logger.getLogger("org.jboss.test.remoting").setLevel(Level.INFO);
String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
PatternLayout layout = new PatternLayout(pattern);
@@ -154,10 +154,13 @@
setOut(originalOutPrintStream);
String sOut = new String(baosOut.toByteArray());
- System.out.println(sOut);
setErr(originalErrPrintStream);
String sErr = new String(baosErr.toByteArray());
- System.out.println(sErr);
+ if (!(sOut.indexOf("detected new serverId:") > -1 ||
sErr.indexOf("detected new serverId:") > -1))
+ {
+ System.out.println(sOut);
+ System.out.println(sErr);
+ }
assertTrue(sOut.indexOf("detected new serverId:") > -1 ||
sErr.indexOf("detected new serverId:") > -1);
client.disconnect();
@@ -210,10 +213,13 @@
setOut(originalOutPrintStream);
String sOut = new String(baosOut.toByteArray());
-// System.out.println(sOut);
setErr(originalErrPrintStream);
String sErr = new String(baosErr.toByteArray());
-// System.out.println(sErr);
+ if (!(sOut.indexOf("detected new serverId:") > -1 ||
sErr.indexOf("detected new serverId:") > -1))
+ {
+ System.out.println(sOut);
+ System.out.println(sErr);
+ }
assertTrue(sOut.indexOf("detected new serverId:") > -1 ||
sErr.indexOf("detected new serverId:") > -1);
client.disconnect();
Show replies by date