Author: alessio.soldano(a)jboss.com
Date: 2012-09-25 12:50:32 -0400 (Tue, 25 Sep 2012)
New Revision: 16761
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1386/Message.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws414/St.java
Log:
Fix tests failing with log level DEBUG or TRACE for whole org.jboss.ws category
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1386/Message.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1386/Message.java 2012-09-25
13:19:21 UTC (rev 16760)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1386/Message.java 2012-09-25
16:50:32 UTC (rev 16761)
@@ -71,6 +71,6 @@
public String toString()
{
- return "[name=" + name + ",data=" + new String(data) +
"]";
+ return "[name=" + name + ",data=" + ((data != null &&
data.length > 0) ? new String(data) : "null") + "]";
}
}
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws414/St.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws414/St.java 2012-09-25
13:19:21 UTC (rev 16760)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws414/St.java 2012-09-25
16:50:32 UTC (rev 16761)
@@ -55,6 +55,6 @@
public String toString()
{
- return ref.toString();
+ return ref != null ? ref.toString() : "null";
}
}
Show replies by date