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 lm...@apache.org on 2006/01/17 20:47:55 UTC

svn commit: r369898 - in /incubator/woden/java/test/org/apache/woden: ./ internal/wsdl20/validation/ tests/ tests/wsdl20/

Author: lmandel
Date: Tue Jan 17 11:47:45 2006
New Revision: 369898

URL: http://svn.apache.org/viewcvs?rev=369898&view=rev
Log:
Moved W3C test class to org.apache.woden.test package.
Moved TestErrorHandler to org.apache.woden.test package.
Added test error handler to W3C and WSDLReader tests.
Updated copyright statement to include 2006.

Added:
    incubator/woden/java/test/org/apache/woden/tests/TestErrorHandler.java
      - copied, changed from r369604, incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/TestErrorHandler.java
    incubator/woden/java/test/org/apache/woden/tests/W3CTestSuiteTest.java
      - copied, changed from r354703, incubator/woden/java/test/org/apache/woden/tests/wsdl20/W3CTestSuiteTest.java
Removed:
    incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/TestErrorHandler.java
    incubator/woden/java/test/org/apache/woden/tests/wsdl20/W3CTestSuiteTest.java
Modified:
    incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java
    incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java
    incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java

Modified: incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java?rev=369898&r1=369897&r2=369898&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java (original)
+++ incubator/woden/java/test/org/apache/woden/WSDLReaderTest.java Tue Jan 17 11:47:45 2006
@@ -21,12 +21,14 @@
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
+import org.apache.woden.tests.TestErrorHandler;
 import org.apache.woden.wsdl20.xml.DescriptionElement;
 
 public class WSDLReaderTest extends TestCase 
 {
   private WSDLFactory factory = null;
   private WSDLReader reader = null;
+  private ErrorHandler handler = null;
   
   public static Test suite()
   {
@@ -35,6 +37,7 @@
 
   protected void setUp() throws Exception 
   {
+	handler = new TestErrorHandler();
 	try
 	{
       factory = WSDLFactory.newInstance();
@@ -49,6 +52,7 @@
   {
 	factory = null;
 	reader = null;
+	handler = null;
   }
   
   public void testReadValidWSDL20()
@@ -57,7 +61,7 @@
 	  try
 	  {
         URL wsdlURL = getClass().getClassLoader().getResource("org/apache/woden/primer-hotelReservationService.wsdl");
-	    desc = reader.readWSDL(wsdlURL.toString());
+	    desc = reader.readWSDL(wsdlURL.toString(), handler);
 	  }
 	  catch(WSDLException e)
 	  {
@@ -68,11 +72,10 @@
   
   public void testReadInvalidWSDL20()
   {
-	  DescriptionElement desc = null;
 	  try
 	  {
 		URL wsdlURL = getClass().getClassLoader().getResource("./org/apache/woden/badDescriptionTags.wsdl");
-	    desc = reader.readWSDL(wsdlURL.toString());
+		reader.readWSDL(wsdlURL.toString(), handler);
         fail("Expected a WSDLException because the \"description\" tag was deliberately misspelt.");
 	  }
 	  catch(WSDLException e)

Modified: incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java?rev=369898&r1=369897&r2=369898&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java (original)
+++ incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java Tue Jan 17 11:47:45 2006
@@ -43,6 +43,7 @@
 import org.apache.woden.internal.wsdl20.InterfaceOperationImpl;
 import org.apache.woden.internal.wsdl20.PropertyImpl;
 import org.apache.woden.internal.wsdl20.TypeDefinitionImpl;
+import org.apache.woden.tests.TestErrorHandler;
 import org.apache.woden.wsdl20.Binding;
 import org.apache.woden.wsdl20.BindingFault;
 import org.apache.woden.wsdl20.BindingFaultReference;

Modified: incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java?rev=369898&r1=369897&r2=369898&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java (original)
+++ incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java Tue Jan 17 11:47:45 2006
@@ -40,6 +40,7 @@
 import org.apache.woden.internal.wsdl20.InterfaceMessageReferenceImpl;
 import org.apache.woden.schema.ImportedSchema;
 import org.apache.woden.schema.InlinedSchema;
+import org.apache.woden.tests.TestErrorHandler;
 import org.apache.woden.wsdl20.xml.DescriptionElement;
 import org.apache.woden.wsdl20.xml.InterfaceElement;
 import org.apache.woden.wsdl20.xml.InterfaceFaultElement;

Copied: incubator/woden/java/test/org/apache/woden/tests/TestErrorHandler.java (from r369604, incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/TestErrorHandler.java)
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/tests/TestErrorHandler.java?p2=incubator/woden/java/test/org/apache/woden/tests/TestErrorHandler.java&p1=incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/TestErrorHandler.java&r1=369604&r2=369898&rev=369898&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/internal/wsdl20/validation/TestErrorHandler.java (original)
+++ incubator/woden/java/test/org/apache/woden/tests/TestErrorHandler.java Tue Jan 17 11:47:45 2006
@@ -13,8 +13,9 @@
  * See the License for the specific language governing permissions and 
  * limitations under the License.
  */
-package org.apache.woden.internal.wsdl20.validation;
+package org.apache.woden.tests;
 
+import java.util.Enumeration;
 import java.util.Hashtable;
 
 import org.apache.woden.ErrorHandler;
@@ -46,12 +47,63 @@
 	numFatalErrors = 0;
   }
   
+  /**
+   * Determine whether a message has been reported.
+   * 
+   * @return True if a message has been reported, false otherwise.
+   */
   public boolean messageHasBeenReported()
   {
 	if(numWarnings + numErrors + numFatalErrors == 0)
 	  return false;
 	return true;
   }
+  
+  /**
+   * Get a summary of the message keys. This is used in
+   * reporting the keys of messages that were reported.
+   * 
+   * @return A summary string of the message keys.
+   */
+  public String getSummaryOfMessageKeys()
+  {
+	StringBuffer summary = new StringBuffer();
+	
+	if(numFatalErrors > 0)
+	{
+	  summary.append("Fatal Errors: ");
+	  Enumeration keys = fatalErrors.keys();
+	  while(keys.hasMoreElements())
+	  {
+		summary.append(keys.nextElement()).append(" ");
+	  }
+	  summary.append("\n");
+	}
+	
+	if(numErrors > 0)
+	{
+	  summary.append("Errors: ");
+	  Enumeration keys = errors.keys();
+	  while(keys.hasMoreElements())
+	  {
+		summary.append(keys.nextElement()).append(" ");
+	  }
+	  summary.append("\n");
+	}
+	
+	if(numWarnings > 0)
+	{
+	  summary.append("Warnings: ");
+	  Enumeration keys = warnings.keys();
+	  while(keys.hasMoreElements())
+	  {
+		summary.append(keys.nextElement()).append(" ");
+	  }
+	}
+	
+	return summary.toString();
+  }
+  
   /* (non-Javadoc)
    * @see org.apache.woden.ErrorHandler#warning(org.apache.woden.ErrorInfo)
    */

Copied: incubator/woden/java/test/org/apache/woden/tests/W3CTestSuiteTest.java (from r354703, incubator/woden/java/test/org/apache/woden/tests/wsdl20/W3CTestSuiteTest.java)
URL: http://svn.apache.org/viewcvs/incubator/woden/java/test/org/apache/woden/tests/W3CTestSuiteTest.java?p2=incubator/woden/java/test/org/apache/woden/tests/W3CTestSuiteTest.java&p1=incubator/woden/java/test/org/apache/woden/tests/wsdl20/W3CTestSuiteTest.java&r1=354703&r2=369898&rev=369898&view=diff
==============================================================================
--- incubator/woden/java/test/org/apache/woden/tests/wsdl20/W3CTestSuiteTest.java (original)
+++ incubator/woden/java/test/org/apache/woden/tests/W3CTestSuiteTest.java Tue Jan 17 11:47:45 2006
@@ -1,5 +1,5 @@
 /**
- * Copyright 2005 Apache Software Foundation 
+ * Copyright 2005, 2006 Apache Software Foundation 
  *
  * Licensed under the Apache License, Version 2.0 (the "License"); 
  * you may not use this file except in compliance with the License. 
@@ -13,14 +13,16 @@
  * See the License for the specific language governing permissions and 
  * limitations under the License.
  */
-package org.apache.woden.tests.wsdl20;
+package org.apache.woden.tests;
 
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
+import org.apache.woden.ErrorReporter;
 import org.apache.woden.WSDLFactory;
 import org.apache.woden.WSDLReader;
+import org.apache.woden.internal.ErrorReporterImpl;
 import org.apache.woden.internal.ReaderFeatures;
 import org.apache.woden.wsdl20.xml.DescriptionElement;
 
@@ -28,6 +30,7 @@
 {
   private WSDLFactory factory = null;
   private WSDLReader reader = null;
+  private TestErrorHandler handler;
 	  
   public static Test suite()
   {
@@ -36,6 +39,8 @@
 
   protected void setUp() throws Exception 
   {
+	handler = new TestErrorHandler();
+
     try
 	{
 	  factory = WSDLFactory.newInstance();
@@ -51,6 +56,7 @@
   {
     factory = null;
 	reader = null;
+	handler = null;
   }
   
   /**
@@ -59,12 +65,50 @@
    * TODO: Add in error checks as the WSDL 2.0 validator is developed.
    */
   
+  /**
+   * Test for the test-suite/documents/bad/Chameleon-1B W3C test.
+   */
+  public void testChameleon1B()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-1B/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  // TODO: determine the assertions that should fail for this test.
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/bad/Chameleon-2B W3C test.
+   */
+  public void testChameleon2B()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-2B/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  // TODO: determine the assertions that should fail for this test.
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/bad/Import-1B W3C test.
+   */
   public void testImport1B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-1B/XSDImport.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-1B/XSDImport.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -72,12 +116,16 @@
 	}
   }
 	  
+  /**
+   * Test for the test-suite/documents/bad/Import-2B W3C test.
+   */
   public void testImport2B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-2B/XSDImportInWSDL.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-2B/XSDImportInWSDL.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -85,12 +133,16 @@
 	}
   }
 	  
+  /**
+   * Test for the test-suite/documents/bad/Import-3B W3C test.
+   */
   public void testImport3B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-3B/XSDImport2.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-3B/XSDImport2.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -98,12 +150,16 @@
 	}
   }
   
-  public void testService1B()
+  /**
+   * Test for the test-suite/documents/bad/Interface-1B W3C test.
+   */
+  public void testInterface1B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-1B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-1B/Interface.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -111,45 +167,84 @@
 	}
   }
   
-  public void testService2B()
+  /**
+   * Test for the test-suite/documents/bad/Interface-2B W3C test.
+   */
+  public void testInterface2B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-2B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-2B/Interface.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
 	  fail("Unable to read WSDL document because of " + e);
 	}
   }
- 
-  //TODO confirm removal of testService7B
-  /*
-   * testService7B commented out temporarily, pending deletion. The wsdl test case has been
-   * removed from the W3C test bucket because 'schema no longer valid'. See: 
-   * http://dev.w3.org/cvsweb//2002/ws/desc/test-suite/documents/bad/Service-7B/Attic/Service.wsdl?
-  public void testService7B()
+  
+  /**
+   * Test for the test-suite/documents/bad/Interface-3B W3C test.
+   */
+  public void testInterface3B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-7B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-3B/Interface.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
 	  fail("Unable to read WSDL document because of " + e);
 	}
   }
+  
+  /**
+   * Test for the test-suite/documents/bad/Service-1B W3C test.
    */
-
+  public void testService1B()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-1B/Service.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
   
+  /**
+   * Test for the test-suite/documents/bad/Service-2B W3C test.
+   */
+  public void testService2B()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-2B/Service.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+
+  /**
+   * Test for the test-suite/documents/bad/Service-12B W3C test.
+   */
   public void testService12B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-12B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-12B/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -157,12 +252,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/bad/Service-13B W3C test.
+   */
   public void testService13B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-13B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-13B/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -170,12 +269,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/bad/Service-14B W3C test.
+   */
   public void testService14B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-14B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-14B/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -183,12 +286,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/bad/Service-15B W3C test.
+   */
   public void testService15B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-15B/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-15B/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -196,12 +303,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/bad/TicketAgent-1B W3C test.
+   */
   public void testTicketAgent1B()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/TicketAgent-1B/TicketAgent-bad.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/TicketAgent-1B/TicketAgent-bad.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+      // TODO: determine the assertions that should fail for this test.
 	}
 	catch(Exception e)
 	{
@@ -215,12 +326,84 @@
    * TODO: Add in error checks as the WSDL 2.0 validator is developed.
    */
   
+  /**
+   * Test for the test-suite/documents/good/Chameleon-1G W3C test.
+   */
+  public void testChameleon1G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-1G/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Chameleon-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Chameleon-2G W3C test.
+   */
+  public void testChameleon2G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-2G/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Chameleon-2G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Chameleon-3G W3C test.
+   */
+  public void testChameleon3G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-3G/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Chameleon-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Chameleon-4G W3C test.
+   */
+  public void testChameleon4G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-4G/getBalance.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Chameleon-4G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/CreditCardFaults-1G W3C test.
+   */
   public void testCreditCardFaults1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/CreditCardFaults-1G/use-credit-card-faults.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/CreditCardFaults-1G/use-credit-card-faults.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good CreditCardFaults-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -228,12 +411,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/GreatH-1G W3C test.
+   */
   public void testGreatH1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/GreatH-1G/primer-hotelReservationService.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/GreatH-1G/primer-hotelReservationService.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good GreatH-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -241,12 +428,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Import-1G W3C test.
+   */
   public void testImport1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-1G/XSDImport.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-1G/XSDImport.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Import-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -254,12 +445,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Import-2G W3C test.
+   */
   public void testImport2G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-2G/XSDImport2.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-2G/XSDImport2.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Import-2G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -267,12 +462,50 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/ImportedWSDL-1G W3C test.
+   */
   public void testImportedWSDL1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ImportedWSDL-1G/updateDetails.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ImportedWSDL-1G/updateDetails.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good ImportedWSDL-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-1G W3C test.
+   */
+  public void testInterface1G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-1G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-2G W3C test.
+   */
+  public void testInterface2G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-2G/Interface.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-2G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -280,12 +513,101 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Interface-3G W3C test.
+   */
+  public void testInterface3G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-3G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-4G W3C test.
+   */
+  public void testInterface4G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-4G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-4G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-5G W3C test.
+   */
+  public void testInterface5G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-5G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-5G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-6G W3C test.
+   */
+  public void testInterface6G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-6G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-6G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/Interface-7G W3C test.
+   */
+  public void testInterface7G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-7G/Interface.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Interface-7G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/MultipleInlineSchemas-1G W3C test.
+   */
   public void testMultipleInlineSchemas1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/MultipleInlineSchemas-1G/retrieveItems.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/MultipleInlineSchemas-1G/retrieveItems.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good MultipleInlineSchemas-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -293,12 +615,33 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/SchemaId-1G W3C test.
+   */
   public void testSchemaId1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaId-1G/schemaIds.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaId-1G/schemaIds.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good SchemaId-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/SchemaLocationFragment-1G W3C test.
+   */
+  public void testSchemaLocationFragment1G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaLocationFragment-1G/Items.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good SchemaLocationFragment-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -306,12 +649,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Service-1G W3C test.
+   */
   public void testService1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-1G/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-1G/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Service-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -319,12 +666,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Service-2G W3C test.
+   */
   public void testService2G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-2G/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-2G/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Service-2G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -332,12 +683,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/Service-3G W3C test.
+   */
   public void testService3G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-3G/Service.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-3G/Service.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good Service-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -345,12 +700,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/ServiceReference-1G W3C test.
+   */
   public void testServiceReference1G1()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationList.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationList.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good ServiceReference-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -358,12 +717,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/ServiceReference-1G W3C test.
+   */
   public void testServiceReference1G2()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationDetails.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationDetails.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good ServiceReference-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -371,12 +734,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/TicketAgent-1G W3C test.
+   */
   public void testTicketAgent1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/TicketAgent-1G/TicketAgent.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/TicketAgent-1G/TicketAgent.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good TicketAgent-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -384,12 +751,33 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/WeathSvc-1G W3C test.
+   */
+  public void testWeathSvc1G()
+  {
+	try
+	{
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/WeathSvc-1G/WeathSvc.wsdl", handler);
+	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good WeathSvc-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+  
+  /**
+   * Test for the test-suite/documents/good/XsImport-1G W3C test.
+   */
   public void testXsImport1G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-1G/reservation.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-1G/reservation.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good XsImport-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -397,12 +785,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/XsImport-2G W3C test.
+   */
   public void testXsImport2G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-2G/reservationDetails.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-2G/reservationDetails.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good XsImport-2G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{
@@ -410,12 +802,16 @@
 	}
   }
   
+  /**
+   * Test for the test-suite/documents/good/XsImport-3G W3C test.
+   */
   public void testXsImport3G()
   {
 	try
 	{
-	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-3G/reservationDetails.wsdl");
+	  DescriptionElement desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-3G/reservationDetails.wsdl", handler);
 	  assertNotNull("DescriptionElement is null.", desc);
+	  assertFalse("The good XsImport-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
 	}
 	catch(Exception e)
 	{



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