Author: darran.lofthouse(a)jboss.com
Date: 2008-06-20 07:59:16 -0400 (Fri, 20 Jun 2008)
New Revision: 7721
Modified:
stack/native/branches/dlofthouse/JBPAPP-881/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
stack/native/branches/dlofthouse/JBPAPP-881/src/test/java/org/jboss/test/ws/jaxrpc/jbws1974/JBWS1974TestCase.java
Log:
Further testsuite change and the fix.
Modified:
stack/native/branches/dlofthouse/JBPAPP-881/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-881/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java 2008-06-20
11:18:48 UTC (rev 7720)
+++
stack/native/branches/dlofthouse/JBPAPP-881/src/main/java/org/jboss/ws/core/soap/SOAPContentElement.java 2008-06-20
11:59:16 UTC (rev 7721)
@@ -518,8 +518,22 @@
return super.hasAttributes();
}
+ public org.w3c.dom.Node getPreviousSibling()
+ {
+ log.trace("getPreviousSibling");
+ expandToDOM();
+ return super.getPreviousSibling();
+ }
+
+ public org.w3c.dom.Node getNextSibling()
+ {
+ log.trace("getNextSibling");
+ expandToDOM();
+ return super.getNextSibling();
+ }
+
// END Node interface
***********************************************************************************************
-
+
public void writeElement(Writer writer) throws IOException
{
if (soapContent instanceof DOMContent)
Modified:
stack/native/branches/dlofthouse/JBPAPP-881/src/test/java/org/jboss/test/ws/jaxrpc/jbws1974/JBWS1974TestCase.java
===================================================================
---
stack/native/branches/dlofthouse/JBPAPP-881/src/test/java/org/jboss/test/ws/jaxrpc/jbws1974/JBWS1974TestCase.java 2008-06-20
11:18:48 UTC (rev 7720)
+++
stack/native/branches/dlofthouse/JBPAPP-881/src/test/java/org/jboss/test/ws/jaxrpc/jbws1974/JBWS1974TestCase.java 2008-06-20
11:59:16 UTC (rev 7721)
@@ -11,8 +11,8 @@
public class JBWS1974TestCase extends JBossWSTest
{
- private static TestEndpoint port;
-
+ private static TestEndpoint port;
+
public static Test suite() throws Exception
{
return new JBossWSTestSetup(JBWS1974TestCase.class, "jaxrpc-jbws1974.war,
jaxrpc-jbws1974-client.jar");
@@ -25,15 +25,16 @@
{
InitialContext iniCtx = getInitialContext();
Service service =
(Service)iniCtx.lookup("java:comp/env/service/TestService");
- port = (TestEndpoint)service.getPort(TestEndpoint.class);
+ port = (TestEndpoint)service.getPort(TestEndpoint.class);
}
+
}
public void testCall() throws Exception
{
+ // It is the null value that is required to trigger the failure.
+ EchoType toEcho = new EchoType("A", "b", null);
- EchoType toEcho = new EchoType("A", "b", "3");
-
EchoType response = port.echo(toEcho);
assertEquals(toEcho.getMessage_1(), response.getMessage_1());
Show replies by date