You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by di...@apache.org on 2008/03/25 13:43:53 UTC

svn commit: r640790 - /webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java

Author: dims
Date: Tue Mar 25 05:43:38 2008
New Revision: 640790

URL: http://svn.apache.org/viewvc?rev=640790&view=rev
Log:
get past a build break from xmlschema, it throws errors now on namespace conflicts

Modified:
    webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java

Modified: webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java?rev=640790&r1=640789&r2=640790&view=diff
==============================================================================
--- webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java (original)
+++ webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java Tue Mar 25 05:43:38 2008
@@ -477,7 +477,8 @@
       Document schemaDoc2 = builder.getDocument();
       XmlSchemaCollection xsc = new XmlSchemaCollection();
       XmlSchema xs1 = xsc.read(schemaDoc1.getDocumentElement());
-      XmlSchema xs2 = xsc.read(schemaDoc2.getDocumentElement());
+      XmlSchemaCollection xsc2 = new XmlSchemaCollection();
+      XmlSchema xs2 = xsc2.read(schemaDoc2.getDocumentElement());
 	  inlinedSchemas[0].setSchemaDefinition(xs1);
 	  inlinedSchemas[1].setSchemaDefinition(xs2);
 	  if(val.testAssertionSchema1073(inlinedSchemas, reporter))
@@ -718,7 +719,8 @@
       Document schemaDoc2 = builder.getDocument();
       XmlSchemaCollection xsc = new XmlSchemaCollection();
       XmlSchema xs1 = xsc.read(schemaDoc1.getDocumentElement());
-      XmlSchema xs2 = xsc.read(schemaDoc2.getDocumentElement());
+      XmlSchemaCollection xsc2 = new XmlSchemaCollection();
+      XmlSchema xs2 = xsc2.read(schemaDoc2.getDocumentElement());
 	  inlinedSchemas[0].setSchemaDefinition(xs1);
 	  inlinedSchemas[1].setSchemaDefinition(xs2);
 	  if(val.testAssertionSchema1073(inlinedSchemas, reporter))



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org


Re: svn commit: r640790 - /webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java

Posted by Jeremy Hughes <hu...@apache.org>.
Hi Dims, presumably this is because XmlSchema has tightened up the
XmlSchemaCollection. Looks reasonable. Thanks for making the change.

Jeremy

On 25/03/2008, dims@apache.org <di...@apache.org> wrote:
> Author: dims
>  Date: Tue Mar 25 05:43:38 2008
>  New Revision: 640790
>
>  URL: http://svn.apache.org/viewvc?rev=640790&view=rev
>  Log:
>  get past a build break from xmlschema, it throws errors now on namespace conflicts
>
>  Modified:
>     webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java
>
>  Modified: webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java
>  URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java?rev=640790&r1=640789&r2=640790&view=diff
>  ==============================================================================
>  --- webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java (original)
>  +++ webservices/woden/trunk/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java Tue Mar 25 05:43:38 2008
>  @@ -477,7 +477,8 @@
>        Document schemaDoc2 = builder.getDocument();
>        XmlSchemaCollection xsc = new XmlSchemaCollection();
>        XmlSchema xs1 = xsc.read(schemaDoc1.getDocumentElement());
>  -      XmlSchema xs2 = xsc.read(schemaDoc2.getDocumentElement());
>  +      XmlSchemaCollection xsc2 = new XmlSchemaCollection();
>  +      XmlSchema xs2 = xsc2.read(schemaDoc2.getDocumentElement());
>           inlinedSchemas[0].setSchemaDefinition(xs1);
>           inlinedSchemas[1].setSchemaDefinition(xs2);
>           if(val.testAssertionSchema1073(inlinedSchemas, reporter))
>  @@ -718,7 +719,8 @@
>        Document schemaDoc2 = builder.getDocument();
>        XmlSchemaCollection xsc = new XmlSchemaCollection();
>        XmlSchema xs1 = xsc.read(schemaDoc1.getDocumentElement());
>  -      XmlSchema xs2 = xsc.read(schemaDoc2.getDocumentElement());
>  +      XmlSchemaCollection xsc2 = new XmlSchemaCollection();
>  +      XmlSchema xs2 = xsc2.read(schemaDoc2.getDocumentElement());
>           inlinedSchemas[0].setSchemaDefinition(xs1);
>           inlinedSchemas[1].setSchemaDefinition(xs2);
>           if(val.testAssertionSchema1073(inlinedSchemas, reporter))
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
>  For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org