Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E187DC2A for ; Fri, 16 Nov 2012 16:50:15 +0000 (UTC) Received: (qmail 77759 invoked by uid 500); 16 Nov 2012 16:50:15 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 77699 invoked by uid 500); 16 Nov 2012 16:50:14 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 77688 invoked by uid 99); 16 Nov 2012 16:50:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 16:50:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 16:50:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6136723888E4; Fri, 16 Nov 2012 16:49:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1410461 - in /cxf/trunk/rt/databinding/xmlbeans: pom.xml src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java Date: Fri, 16 Nov 2012 16:49:50 -0000 To: commits@cxf.apache.org From: dkulp@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121116164951.6136723888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dkulp Date: Fri Nov 16 16:49:49 2012 New Revision: 1410461 URL: http://svn.apache.org/viewvc?rev=1410461&view=rev Log: Another potential failing test with IBM JDK Modified: cxf/trunk/rt/databinding/xmlbeans/pom.xml cxf/trunk/rt/databinding/xmlbeans/src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java Modified: cxf/trunk/rt/databinding/xmlbeans/pom.xml URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/xmlbeans/pom.xml?rev=1410461&r1=1410460&r2=1410461&view=diff ============================================================================== --- cxf/trunk/rt/databinding/xmlbeans/pom.xml (original) +++ cxf/trunk/rt/databinding/xmlbeans/pom.xml Fri Nov 16 16:49:49 2012 @@ -107,7 +107,11 @@ ${project.version} test - + + org.slf4j + slf4j-jdk14 + test + org.springframework spring-beans Modified: cxf/trunk/rt/databinding/xmlbeans/src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/xmlbeans/src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java?rev=1410461&r1=1410460&r2=1410461&view=diff ============================================================================== --- cxf/trunk/rt/databinding/xmlbeans/src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java (original) +++ cxf/trunk/rt/databinding/xmlbeans/src/test/java/org/apache/cxf/xmlbeans/WrappedStyleTest.java Fri Nov 16 16:49:49 2012 @@ -20,7 +20,9 @@ package org.apache.cxf.xmlbeans; import javax.xml.namespace.QName; +import org.w3c.dom.Element; import org.w3c.dom.Node; +import org.w3c.dom.NodeList; import org.apache.cxf.common.util.SOAPConstants; import org.apache.cxf.endpoint.Server; @@ -84,12 +86,19 @@ public class WrappedStyleTest extends Ab Node wsdl = getWSDLDocument("TestService"); addNamespace("xsd", SOAPConstants.XSD); + addNamespace("ns0", "http://cxf.apache.org/xmlbeans"); assertValid("//xsd:schema[@targetNamespace='urn:TestService']" + "/xsd:complexType[@name='mixedRequest']" + "//xsd:element[@name='string'][@type='xsd:string']", wsdl); - assertValid("//xsd:schema[@targetNamespace='urn:TestService']" + + NodeList list = assertValid("//xsd:schema[@targetNamespace='urn:TestService']" + "/xsd:complexType[@name='mixedRequest']" - + "//xsd:element[@ref='ns0:request']", wsdl); + + "//xsd:element[@ref]", wsdl); + for (int x = 0; x < list.getLength(); x++) { + Element el = (Element)list.item(x); + assertTrue(el.getAttribute("ref"), el.getAttribute("ref").contains("request")); + } + assertValid("//xsd:schema[@targetNamespace='urn:TestService']" + "/xsd:element[@name='CustomFault'][@type='xsd:string']", wsdl);