[jboss-svn-commits] JBossWS SVN: r1139 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 4 17:17:48 EDT 2006


Author: heiko.braun at jboss.com
Date: 2006-10-04 17:17:46 -0400 (Wed, 04 Oct 2006)
New Revision: 1139

Modified:
   branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java
Log:
extended test case

Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java	2006-10-04 21:17:34 UTC (rev 1138)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/jbws434/JBWS434TestCase.java	2006-10-04 21:17:46 UTC (rev 1139)
@@ -133,6 +133,29 @@
 
    }
 
+   /**
+    * An element declared as wildcard uses an element
+    * declared in schema as wildcard contents. 
+    */
+   public void testWildCardContentsDeclared() throws Exception
+   {
+      SOAPFactory factory = SOAPFactory.newInstance();
+
+      SOAPElement el1 = factory.createElement("knownWildcard", "ns1", "http://somens");
+      el1.setValue("Kermmit");
+
+      TypeOfAny3 inObj = new TypeOfAny3(el1);
+      TypeOfAny3 retObj = port.echo3(inObj);
+
+      assertNotNull(retObj);
+      assertNotNull(retObj._any);
+
+      SOAPElement inE = inObj._any;
+      SOAPElement retE = retObj._any;
+      assertEquals(inE, retE);
+
+   }
+
    private static void assertEquals(SOAPElement myE, SOAPElement otherE)
    {
       assertEquals(otherE.getLocalName(), myE.getLocalName());




More information about the jboss-svn-commits mailing list