[jbossws-commits] JBossWS SVN: r3123 - in branches/jbossws-1.2.0.GA_JBWS-1610/jbossws-tests/src/main/java/org/jboss/test/ws: jaxrpc/jbws1610 and 1 other directory.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu May 17 10:11:15 EDT 2007


Author: darran.lofthouse at 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:Header></env:Header><env:Body><ns1:hello xmlns:ns1='http://handlerservice1.org/wsdl'><String_1>world::SOAP 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:Body><ns1:hello xmlns:ns1='http://handlerservice1.org/wsdl'><String_1>world::SOAP 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());      
    }
 }




More information about the jbossws-commits mailing list