Author: darran.lofthouse(a)jboss.com
Date: 2007-05-17 10:11:14 -0400 (Thu, 17 May 2007)
New Revision: 3123
Modified:
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1610/JBWS1610TestCase.java
Log:
JBWS-1610 - Test case modifications.
Modified:
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java
===================================================================
---
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java 2007-05-17
12:18:13 UTC (rev 3122)
+++
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/common/soap/SOAPContentElementTestCase.java 2007-05-17
14:11:14 UTC (rev 3123)
@@ -151,8 +151,14 @@
*/
public void testTextNodeAccess() throws Exception
{
- String envStr = "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
"<env:Body>" + "<ns1:hello
xmlns:ns1='http://handlerservice1.org/wsdl'>"
- + "<String_1>world</String_1>" +
"</ns1:hello>" + "</env:Body>" +
"</env:Envelope>";
+ String envStr =
+ "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<env:Body>" +
+ "<ns1:hello
xmlns:ns1='http://handlerservice1.org/wsdl'>" +
+ "<String_1>world</String_1>" +
+ "</ns1:hello>" +
+ "</env:Body>" +
+ "</env:Envelope>";
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage soapMessage = factory.createMessage(null, new
ByteArrayInputStream(envStr.getBytes()));
@@ -171,9 +177,7 @@
ByteArrayOutputStream baos = new ByteArrayOutputStream();
soapMessage.writeTo(baos);
- String expEnv = "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:ns1='http://handlerservice1.org/wsdl'><String_1>wo... header
was added</String_1></ns1:hello></env:Body></env:Envelope>";
- System.out.println(expEnv);
- System.out.println(baos.toString());
+ String expEnv = "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:ns1='http://handlerservice1.org/wsdl'><String_1>wo... header
was added</String_1></ns1:hello></env:Body></env:Envelope>";
assertEquals(expEnv, baos.toString());
}
}
Modified:
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1610/JBWS1610TestCase.java
===================================================================
---
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1610/JBWS1610TestCase.java 2007-05-17
12:18:13 UTC (rev 3122)
+++
branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws/jaxrpc/jbws1610/JBWS1610TestCase.java 2007-05-17
14:11:14 UTC (rev 3123)
@@ -68,9 +68,6 @@
assertNotNull(response);
assertEquals("String Modifed By Handler", "YYXXFirst
StringXXYY", response.getStringA());
- assertEquals("String Modifed By Handler", "YYXXSecond
StringXXYY", response.getStringB());
-
- System.out.println(response.getStringA() + " - " +
response.getStringB());
-
+ assertEquals("String Modifed By Handler", "YYXXSecond
StringXXYY", response.getStringB());
}
}