Author: rsvoboda(a)redhat.com
Date: 2012-01-18 08:25:30 -0500 (Wed, 18 Jan 2012)
New Revision: 15497
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140AddrResponsesTestCase.java
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140MtomAddrFeatureTestCase.java
Log:
JBPAPP-7951 - more details in assertion messages
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140AddrResponsesTestCase.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140AddrResponsesTestCase.java 2012-01-18
13:16:19 UTC (rev 15496)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140AddrResponsesTestCase.java 2012-01-18
13:25:30 UTC (rev 15497)
@@ -43,9 +43,9 @@
{
HttpURLConnection connection = (HttpURLConnection) new URL(servletClientURL +
"?mtom=small").openConnection();
String result = readConnection(connection).toString();
- assertTrue("SOAPFaultException is expected",
result.indexOf("SOAPFaultException") > -1);
+ assertTrue("SOAPFaultException is expected but received: " + result,
result.indexOf("SOAPFaultException") > -1);
String expectedDetail = "A header representing a Message Addressing Property
is not valid";
- assertTrue("Expected error message " + expectedDetail ,
result.indexOf(expectedDetail) > -1);
+ assertTrue("Expected message wasn't found in response: " + result,
result.indexOf(expectedDetail) > -1);
}
private ByteArrayOutputStream readConnection(HttpURLConnection connection)
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140MtomAddrFeatureTestCase.java
===================================================================
---
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140MtomAddrFeatureTestCase.java 2012-01-18
13:16:19 UTC (rev 15496)
+++
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxws/jbws3140/JBWS3140MtomAddrFeatureTestCase.java 2012-01-18
13:25:30 UTC (rev 15497)
@@ -75,7 +75,7 @@
HttpURLConnection connection = (HttpURLConnection) new URL(servletClientURL +
"?mtom=small").openConnection();
String result = readConnection(connection).toString();
String expected
="--ClientMTOMEnabled--ServerMTOMEnabled--ServerAddressingEnabled--ClientAddressingEnabled";
- assertTrue(result.indexOf(expected) > -1);
+ assertTrue("Expected string wasn't found in response: " + result,
result.indexOf(expected) > -1);
}
private ByteArrayOutputStream readConnection(HttpURLConnection connection)
Show replies by date