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 jk...@apache.org on 2007/08/23 13:24:56 UTC

svn commit: r568937 [8/17] - in /incubator/woden/trunk/java/test: javax/xml/namespace/ org/apache/woden/ org/apache/woden/ant/ org/apache/woden/internal/ org/apache/woden/internal/wsdl20/validation/ org/apache/woden/resolver/ org/apache/woden/resolver/...

Modified: incubator/woden/trunk/java/test/org/apache/woden/tests/W3CTestSuiteTest.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/tests/W3CTestSuiteTest.java?rev=568937&r1=568936&r2=568937&view=diff
==============================================================================
--- incubator/woden/trunk/java/test/org/apache/woden/tests/W3CTestSuiteTest.java (original)
+++ incubator/woden/trunk/java/test/org/apache/woden/tests/W3CTestSuiteTest.java Thu Aug 23 04:24:51 2007
@@ -1,823 +1,823 @@
-/**
+/**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0 
- * 
- * Unless required by applicable law or agreed to in writing, software 
- * distributed under the License is distributed on an "AS IS" BASIS, 
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
- * See the License for the specific language governing permissions and 
- * limitations under the License.
- */
-package org.apache.woden.tests;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.apache.woden.WSDLFactory;
-import org.apache.woden.WSDLReader;
-import org.apache.woden.wsdl20.Description;
-
-public class W3CTestSuiteTest extends TestCase 
-{
-  private WSDLFactory factory = null;
-  private WSDLReader reader = null;
-  private TestErrorHandler handler;
-	  
-  public static Test suite()
-  {
-	return new TestSuite(W3CTestSuiteTest.class);
-  }
-
-  protected void setUp() throws Exception 
-  {
-
-	handler = new TestErrorHandler();
-
-    try
-	{
-	  factory = WSDLFactory.newInstance();
-	  reader = factory.newWSDLReader();  
-	  reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
-	} 
-	catch (Exception e) 
-    {
-	}
-  }
- 
-  protected void tearDown() throws Exception 
-  {
-    factory = null;
-	reader = null;
-	handler = null;
-  }
-  
-  /**
-   * BAD TEST CASES
-   * All of the following test cases should report errors. 
-   * 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-1B/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-2B/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-1B/XSDImport.wsdl", handler);
-	  assertNotNull("Description 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-2B W3C test.
-   */
-  public void testImport2B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-2B/XSDImportInWSDL.wsdl", handler);
-	  assertNotNull("Description 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-3B W3C test.
-   */
-  public void testImport3B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-3B/XSDImport2.wsdl", handler);
-	  assertNotNull("Description 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/Interface-1B W3C test.
-   */
-  public void testInterface1B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-1B/Interface.wsdl", handler);
-	  assertNotNull("Description 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/Interface-2B W3C test.
-   */
-  public void testInterface2B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-2B/Interface.wsdl", handler);
-	  assertNotNull("Description 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/Interface-3B W3C test.
-   */
-  public void testInterface3B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-3B/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-1B/Service.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-2B/Service.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-12B/Service.wsdl", handler);
-	  assertNotNull("Description 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-13B W3C test.
-   */
-  public void testService13B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-13B/Service.wsdl", handler);
-	  assertNotNull("Description 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-14B W3C test.
-   */
-  public void testService14B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-14B/Service.wsdl", handler);
-	  assertNotNull("Description 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-15B W3C test.
-   */
-  public void testService15B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-15B/Service.wsdl", handler);
-	  assertNotNull("Description 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/TicketAgent-1B W3C test.
-   */
-  public void testTicketAgent1B()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/TicketAgent-1B/TicketAgent-bad.wsdl", handler);
-	  assertNotNull("Description 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);
-	}
-  }
-  
-  /**
-   * GOOD TEST CASES
-   * All of the following test cases shouldn't report errors. 
-   * 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-1G/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-2G/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-3G/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-4G/getBalance.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description 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("Description is null.", desc);
-	  assertFalse("The good CreditCardFaults-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/GreatH-1G W3C test.
-   */
-  public void testGreatH1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/GreatH-1G/primer-hotelReservationService.wsdl", handler);
-      assertTrue("number of bindings isn't 1", desc.getBindings().length == 1);
-      assertTrue("interfacename is null", desc.getBindings()[0].getInterface()!=null);
-
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good GreatH-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/Import-1G W3C test.
-   */
-  public void testImport1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-1G/XSDImport.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Import-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/Import-2G W3C test.
-   */
-  public void testImport2G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-2G/XSDImport2.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Import-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/ImportedWSDL-1G W3C test.
-   */
-  public void testImportedWSDL1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ImportedWSDL-1G/updateDetails.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good ImportedWSDL-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.errorMessageHasBeenReported());
-	}
-	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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-1G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-2G/Interface.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Interface-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/Interface-3G W3C test.
-   */
-  public void testInterface3G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-3G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-4G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-5G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-6G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-7G/Interface.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/MultipleInlineSchemas-1G/retrieveItems.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good MultipleInlineSchemas-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/SchemaId-1G W3C test.
-   */
-  public void testSchemaId1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaId-1G/schemaIds.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaLocationFragment-1G/Items.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good SchemaLocationFragment-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/Service-1G W3C test.
-   */
-  public void testService1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-1G/Service.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Service-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/Service-2G W3C test.
-   */
-  public void testService2G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-2G/Service.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Service-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/Service-3G W3C test.
-   */
-  public void testService3G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-3G/Service.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good Service-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/ServiceReference-1G W3C test.
-   */
-  public void testServiceReference1G1()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationList.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good ServiceReference-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/ServiceReference-1G W3C test.
-   */
-  public void testServiceReference1G2()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationDetails.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good ServiceReference-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/TicketAgent-1G W3C test.
-   */
-  public void testTicketAgent1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/TicketAgent-1G/TicketAgent.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good TicketAgent-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/WeathSvc-1G W3C test.
-   */
-  public void testWeathSvc1G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/WeathSvc-1G/WeathSvc.wsdl", handler);
-	  assertNotNull("Description 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
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-1G/reservation.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good XsImport-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-2G W3C test.
-   */
-  public void testXsImport2G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-2G/reservationDetails.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good XsImport-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/XsImport-3G W3C test.
-   */
-  public void testXsImport3G()
-  {
-	try
-	{
-	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-3G/reservationDetails.wsdl", handler);
-	  assertNotNull("Description is null.", desc);
-	  assertFalse("The good XsImport-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
-	}
-	catch(Exception e)
-	{
-	  fail("Unable to read WSDL document because of " + e);
-	}
-  }
-}
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.tests;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.WSDLReader;
+import org.apache.woden.wsdl20.Description;
+
+public class W3CTestSuiteTest extends TestCase 
+{
+  private WSDLFactory factory = null;
+  private WSDLReader reader = null;
+  private TestErrorHandler handler;
+	  
+  public static Test suite()
+  {
+	return new TestSuite(W3CTestSuiteTest.class);
+  }
+
+  protected void setUp() throws Exception 
+  {
+
+	handler = new TestErrorHandler();
+
+    try
+	{
+	  factory = WSDLFactory.newInstance();
+	  reader = factory.newWSDLReader();  
+	  reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
+	} 
+	catch (Exception e) 
+    {
+	}
+  }
+ 
+  protected void tearDown() throws Exception 
+  {
+    factory = null;
+	reader = null;
+	handler = null;
+  }
+  
+  /**
+   * BAD TEST CASES
+   * All of the following test cases should report errors. 
+   * 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-1B/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Chameleon-2B/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-1B/XSDImport.wsdl", handler);
+	  assertNotNull("Description 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-2B W3C test.
+   */
+  public void testImport2B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-2B/XSDImportInWSDL.wsdl", handler);
+	  assertNotNull("Description 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-3B W3C test.
+   */
+  public void testImport3B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Import-3B/XSDImport2.wsdl", handler);
+	  assertNotNull("Description 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/Interface-1B W3C test.
+   */
+  public void testInterface1B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-1B/Interface.wsdl", handler);
+	  assertNotNull("Description 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/Interface-2B W3C test.
+   */
+  public void testInterface2B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-2B/Interface.wsdl", handler);
+	  assertNotNull("Description 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/Interface-3B W3C test.
+   */
+  public void testInterface3B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Interface-3B/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-1B/Service.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-2B/Service.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-12B/Service.wsdl", handler);
+	  assertNotNull("Description 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-13B W3C test.
+   */
+  public void testService13B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-13B/Service.wsdl", handler);
+	  assertNotNull("Description 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-14B W3C test.
+   */
+  public void testService14B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-14B/Service.wsdl", handler);
+	  assertNotNull("Description 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-15B W3C test.
+   */
+  public void testService15B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/Service-15B/Service.wsdl", handler);
+	  assertNotNull("Description 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/TicketAgent-1B W3C test.
+   */
+  public void testTicketAgent1B()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/bad/TicketAgent-1B/TicketAgent-bad.wsdl", handler);
+	  assertNotNull("Description 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);
+	}
+  }
+  
+  /**
+   * GOOD TEST CASES
+   * All of the following test cases shouldn't report errors. 
+   * 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-1G/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-2G/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-3G/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Chameleon-4G/getBalance.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description 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("Description is null.", desc);
+	  assertFalse("The good CreditCardFaults-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/GreatH-1G W3C test.
+   */
+  public void testGreatH1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/GreatH-1G/primer-hotelReservationService.wsdl", handler);
+      assertTrue("number of bindings isn't 1", desc.getBindings().length == 1);
+      assertTrue("interfacename is null", desc.getBindings()[0].getInterface()!=null);
+
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good GreatH-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/Import-1G W3C test.
+   */
+  public void testImport1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-1G/XSDImport.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Import-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/Import-2G W3C test.
+   */
+  public void testImport2G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Import-2G/XSDImport2.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Import-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/ImportedWSDL-1G W3C test.
+   */
+  public void testImportedWSDL1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ImportedWSDL-1G/updateDetails.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good ImportedWSDL-1G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.errorMessageHasBeenReported());
+	}
+	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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-1G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-2G/Interface.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Interface-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/Interface-3G W3C test.
+   */
+  public void testInterface3G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-3G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-4G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-5G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-6G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Interface-7G/Interface.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/MultipleInlineSchemas-1G/retrieveItems.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good MultipleInlineSchemas-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/SchemaId-1G W3C test.
+   */
+  public void testSchemaId1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaId-1G/schemaIds.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/SchemaLocationFragment-1G/Items.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good SchemaLocationFragment-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/Service-1G W3C test.
+   */
+  public void testService1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-1G/Service.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Service-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/Service-2G W3C test.
+   */
+  public void testService2G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-2G/Service.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Service-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/Service-3G W3C test.
+   */
+  public void testService3G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/Service-3G/Service.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good Service-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/ServiceReference-1G W3C test.
+   */
+  public void testServiceReference1G1()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationList.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good ServiceReference-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/ServiceReference-1G W3C test.
+   */
+  public void testServiceReference1G2()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/ServiceReference-1G/reservationDetails.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good ServiceReference-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/TicketAgent-1G W3C test.
+   */
+  public void testTicketAgent1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/TicketAgent-1G/TicketAgent.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good TicketAgent-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/WeathSvc-1G W3C test.
+   */
+  public void testWeathSvc1G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/WeathSvc-1G/WeathSvc.wsdl", handler);
+	  assertNotNull("Description 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
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-1G/reservation.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good XsImport-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-2G W3C test.
+   */
+  public void testXsImport2G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-2G/reservationDetails.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good XsImport-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/XsImport-3G W3C test.
+   */
+  public void testXsImport3G()
+  {
+	try
+	{
+	  Description desc = reader.readWSDL("http://dev.w3.org/cvsweb/~checkout~/2002/ws/desc/test-suite/documents/good/XsImport-3G/reservationDetails.wsdl", handler);
+	  assertNotNull("Description is null.", desc);
+	  assertFalse("The good XsImport-3G test returned errors. " + handler.getSummaryOfMessageKeys(), handler.messageHasBeenReported());
+	}
+	catch(Exception e)
+	{
+	  fail("Unable to read WSDL document because of " + e);
+	}
+  }
+}

Propchange: incubator/woden/trunk/java/test/org/apache/woden/tests/W3CTestSuiteTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/test/org/apache/woden/types/NCNameTest.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/types/NCNameTest.java?rev=568937&r1=568936&r2=568937&view=diff
==============================================================================
--- incubator/woden/trunk/java/test/org/apache/woden/types/NCNameTest.java (original)
+++ incubator/woden/trunk/java/test/org/apache/woden/types/NCNameTest.java Thu Aug 23 04:24:51 2007
@@ -1,82 +1,82 @@
-/**
+/**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0 
- * 
- * Unless required by applicable law or agreed to in writing, software 
- * distributed under the License is distributed on an "AS IS" BASIS, 
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
- * See the License for the specific language governing permissions and 
- * limitations under the License.
- */
-package org.apache.woden.types;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-/**
- * junit tests for the NCName class.
- */
-public class NCNameTest extends TestCase {
-
-    public static Test suite()
-    {
-        return new TestSuite(NCNameTest.class);
-    }
-    
-    private NCName n1, n1_dup, n1_dup2, n2, n3, n3_dup, n3_dup2;
-    
-    public void setUp() {
-        n1 = new NCName("someNCName");
-        n1_dup = new NCName("someNCName");
-        n1_dup2 = new NCName("someNCName");
-        n2 = new NCName("someOtheNCName");
-        n3= new NCName();
-        n3_dup = new NCName();
-        n3_dup2 = new NCName();
-    }
-
-    public void testEqualsWithNullValueNCNames() {
-        equalsIsReflexive(n3);
-        equalsIsSymmetric(n3, n3_dup, n2);
-        equalsIsTransitive(n3, n3_dup, n3_dup2);
-        equalsIsConsistent(n3, n3_dup);
-    }
-    
-    public void testEqualsWithNonNullValueNCNames() {
-        equalsIsReflexive(n1);
-        equalsIsSymmetric(n1, n1_dup, n2);
-        equalsIsTransitive(n1, n1_dup, n1_dup2);
-        equalsIsConsistent(n1, n1_dup);        
-    }
-    
-    private void equalsIsReflexive(NCName n1) {
-        assertTrue("reflexive test fails", n1.equals(n1));
-    }
-    
-    private void equalsIsSymmetric(NCName n1, NCName n1_dup, NCName n2) {
-        assertTrue("symmetric test fails for equal NCNames", n1.equals(n1_dup));
-        assertTrue("symmetric test fails for equal NCNames", n1_dup.equals(n1));
-        assertTrue("symmetric test fails for unequal NCNames", !n1.equals(n2));
-        assertTrue("symmetric test fails for unequal NCNames", !n2.equals(n1));
-    }
-    
-    private void equalsIsTransitive(NCName n1, NCName n1_dup, NCName n1_dup2) {
-        assertTrue("transitive test fails", n1.equals(n1_dup) && n1_dup.equals(n1_dup2) && n1.equals(n1_dup2));
-    }
-    
-    private void equalsIsConsistent(NCName n1, NCName n1_dup) {
-        assertTrue("consistent test fails", n1.equals(n1_dup) && n1.equals(n1_dup));
-    }
-    
-    public void testEqualsNullParamFalse() {
-        assertTrue("Null param doesn't return false", n1.equals(null) == false);
-    }
-    
-}
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.types;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * junit tests for the NCName class.
+ */
+public class NCNameTest extends TestCase {
+
+    public static Test suite()
+    {
+        return new TestSuite(NCNameTest.class);
+    }
+    
+    private NCName n1, n1_dup, n1_dup2, n2, n3, n3_dup, n3_dup2;
+    
+    public void setUp() {
+        n1 = new NCName("someNCName");
+        n1_dup = new NCName("someNCName");
+        n1_dup2 = new NCName("someNCName");
+        n2 = new NCName("someOtheNCName");
+        n3= new NCName();
+        n3_dup = new NCName();
+        n3_dup2 = new NCName();
+    }
+
+    public void testEqualsWithNullValueNCNames() {
+        equalsIsReflexive(n3);
+        equalsIsSymmetric(n3, n3_dup, n2);
+        equalsIsTransitive(n3, n3_dup, n3_dup2);
+        equalsIsConsistent(n3, n3_dup);
+    }
+    
+    public void testEqualsWithNonNullValueNCNames() {
+        equalsIsReflexive(n1);
+        equalsIsSymmetric(n1, n1_dup, n2);
+        equalsIsTransitive(n1, n1_dup, n1_dup2);
+        equalsIsConsistent(n1, n1_dup);        
+    }
+    
+    private void equalsIsReflexive(NCName n1) {
+        assertTrue("reflexive test fails", n1.equals(n1));
+    }
+    
+    private void equalsIsSymmetric(NCName n1, NCName n1_dup, NCName n2) {
+        assertTrue("symmetric test fails for equal NCNames", n1.equals(n1_dup));
+        assertTrue("symmetric test fails for equal NCNames", n1_dup.equals(n1));
+        assertTrue("symmetric test fails for unequal NCNames", !n1.equals(n2));
+        assertTrue("symmetric test fails for unequal NCNames", !n2.equals(n1));
+    }
+    
+    private void equalsIsTransitive(NCName n1, NCName n1_dup, NCName n1_dup2) {
+        assertTrue("transitive test fails", n1.equals(n1_dup) && n1_dup.equals(n1_dup2) && n1.equals(n1_dup2));
+    }
+    
+    private void equalsIsConsistent(NCName n1, NCName n1_dup) {
+        assertTrue("consistent test fails", n1.equals(n1_dup) && n1.equals(n1_dup));
+    }
+    
+    public void testEqualsNullParamFalse() {
+        assertTrue("Null param doesn't return false", n1.equals(null) == false);
+    }
+    
+}

Propchange: incubator/woden/trunk/java/test/org/apache/woden/types/NCNameTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultReferenceTest.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultReferenceTest.java?rev=568937&r1=568936&r2=568937&view=diff
==============================================================================
--- incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultReferenceTest.java (original)
+++ incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultReferenceTest.java Thu Aug 23 04:24:51 2007
@@ -1,125 +1,125 @@
-/**
+/**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0 
- * 
- * Unless required by applicable law or agreed to in writing, software 
- * distributed under the License is distributed on an "AS IS" BASIS, 
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
- * See the License for the specific language governing permissions and 
- * limitations under the License.
- */
-package org.apache.woden.wsdl20;
-
-import javax.xml.namespace.QName;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.apache.woden.WSDLException;
-import org.apache.woden.WSDLFactory;
-import org.apache.woden.internal.wsdl20.BindingFaultReferenceImpl;
-import org.apache.woden.internal.wsdl20.DescriptionImpl;
-import org.apache.woden.types.NCName;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.DescriptionElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
-import org.apache.woden.wsdl20.xml.InterfaceFaultReferenceElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-
-/**
- * Unit tests for the BindingFaultReference class.
- * 
- * @author Graham Turrell (gturrell@apache.org)
- */
-public class BindingFaultReferenceTest extends TestCase {
-
-	private BindingFaultReferenceElement fFaultRefElement = null;
-	private BindingFaultReference fFaultRef = null;	
-
-	public static Test suite()
-	{
-	   return new TestSuite(BindingFaultReferenceTest.class);
-	   
-	}
-	   /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception 
-    {
-    	super.setUp();
-    	fFaultRefElement = new BindingFaultReferenceImpl();
-		fFaultRef = (BindingFaultReference) fFaultRefElement;
-    }
-    
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception 
-    {
-        super.tearDown();
-    }
-
-	/* 
-	 * Test that the (Mandatory) InterfaceFaultReference can be successfully retrieved.
-	 * The fault reference is to an Interface Fault associated with the grandparent BindingElement.
-	 */
-	public void testGetInterfaceFaultReference()
-	{
-        WSDLFactory factory = null;
-        try {
-            factory = WSDLFactory.newInstance();
-        } catch (WSDLException e) {
-            fail("Can't instantiate the WSDLFactory object.");
-        }
-        
-		DescriptionElement descriptionElement = factory.newDescription();
-
-		// Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceFaultReferenceElement hierarchy
-		BindingElement bindingElement = descriptionElement.addBindingElement();
-		bindingElement.setInterfaceName(new QName("interface1"));
-		
-		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
-		interfaceElement.setName(new NCName("interface1"));
-		InterfaceFaultElement ife = interfaceElement.addInterfaceFaultElement();
-		ife.setName(new NCName("Fault1Ref"));
-		
-		InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
-		ifopElement.setName(new NCName("operation1"));
-		InterfaceFaultReferenceElement iffrElement = ifopElement.addInterfaceFaultReferenceElement();
-		iffrElement.setMessageLabel(new NCName("Fault1MessageLabel"));
-		iffrElement.setRef(new QName("Fault1Ref"));
-				
-		// Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
-		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
-		bopElement.setRef(new QName("operation1"));
-		fFaultRefElement = bopElement.addBindingFaultReferenceElement();
-		fFaultRefElement.setMessageLabel(new NCName("Fault1MessageLabel"));
-		fFaultRefElement.setRef(new QName("Fault1Ref"));
-
-		Description descComp = descriptionElement.toComponent();
-		descComp.getBindings(); // this triggers setting the link to description in the binding
-		
-		fFaultRef = (BindingFaultReference) fFaultRefElement;
-		InterfaceFaultReference retrievedFault = fFaultRef.getInterfaceFaultReference();
-		assertEquals("The retrieved InterfaceFaultReference is not that which was set", 
-				iffrElement, retrievedFault);
-	}
-	
-	/*
-     * toElement()
-     */
-	public void testToElement() 
-	{	
-		assertEquals(fFaultRefElement, fFaultRef.toElement());
-	}
-}
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20;
+
+import javax.xml.namespace.QName;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.internal.wsdl20.BindingFaultReferenceImpl;
+import org.apache.woden.internal.wsdl20.DescriptionImpl;
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingFaultReferenceElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
+import org.apache.woden.wsdl20.xml.InterfaceFaultReferenceElement;
+import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
+
+/**
+ * Unit tests for the BindingFaultReference class.
+ * 
+ * @author Graham Turrell (gturrell@apache.org)
+ */
+public class BindingFaultReferenceTest extends TestCase {
+
+	private BindingFaultReferenceElement fFaultRefElement = null;
+	private BindingFaultReference fFaultRef = null;	
+
+	public static Test suite()
+	{
+	   return new TestSuite(BindingFaultReferenceTest.class);
+	   
+	}
+	   /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception 
+    {
+    	super.setUp();
+    	fFaultRefElement = new BindingFaultReferenceImpl();
+		fFaultRef = (BindingFaultReference) fFaultRefElement;
+    }
+    
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception 
+    {
+        super.tearDown();
+    }
+
+	/* 
+	 * Test that the (Mandatory) InterfaceFaultReference can be successfully retrieved.
+	 * The fault reference is to an Interface Fault associated with the grandparent BindingElement.
+	 */
+	public void testGetInterfaceFaultReference()
+	{
+        WSDLFactory factory = null;
+        try {
+            factory = WSDLFactory.newInstance();
+        } catch (WSDLException e) {
+            fail("Can't instantiate the WSDLFactory object.");
+        }
+        
+		DescriptionElement descriptionElement = factory.newDescription();
+
+		// Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceFaultReferenceElement hierarchy
+		BindingElement bindingElement = descriptionElement.addBindingElement();
+		bindingElement.setInterfaceName(new QName("interface1"));
+		
+		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
+		interfaceElement.setName(new NCName("interface1"));
+		InterfaceFaultElement ife = interfaceElement.addInterfaceFaultElement();
+		ife.setName(new NCName("Fault1Ref"));
+		
+		InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
+		ifopElement.setName(new NCName("operation1"));
+		InterfaceFaultReferenceElement iffrElement = ifopElement.addInterfaceFaultReferenceElement();
+		iffrElement.setMessageLabel(new NCName("Fault1MessageLabel"));
+		iffrElement.setRef(new QName("Fault1Ref"));
+				
+		// Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
+		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
+		bopElement.setRef(new QName("operation1"));
+		fFaultRefElement = bopElement.addBindingFaultReferenceElement();
+		fFaultRefElement.setMessageLabel(new NCName("Fault1MessageLabel"));
+		fFaultRefElement.setRef(new QName("Fault1Ref"));
+
+		Description descComp = descriptionElement.toComponent();
+		descComp.getBindings(); // this triggers setting the link to description in the binding
+		
+		fFaultRef = (BindingFaultReference) fFaultRefElement;
+		InterfaceFaultReference retrievedFault = fFaultRef.getInterfaceFaultReference();
+		assertEquals("The retrieved InterfaceFaultReference is not that which was set", 
+				iffrElement, retrievedFault);
+	}
+	
+	/*
+     * toElement()
+     */
+	public void testToElement() 
+	{	
+		assertEquals(fFaultRefElement, fFaultRef.toElement());
+	}
+}

Propchange: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultReferenceTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultTest.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultTest.java?rev=568937&r1=568936&r2=568937&view=diff
==============================================================================
--- incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultTest.java (original)
+++ incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultTest.java Thu Aug 23 04:24:51 2007
@@ -1,119 +1,119 @@
-/**
+/**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0 
- * 
- * Unless required by applicable law or agreed to in writing, software 
- * distributed under the License is distributed on an "AS IS" BASIS, 
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
- * See the License for the specific language governing permissions and 
- * limitations under the License.
- */
-package org.apache.woden.wsdl20;
-
-import javax.xml.namespace.QName;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.apache.woden.WSDLException;
-import org.apache.woden.WSDLFactory;
-import org.apache.woden.internal.wsdl20.BindingFaultImpl;
-import org.apache.woden.internal.wsdl20.DescriptionImpl;
-import org.apache.woden.types.NCName;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingFaultElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.DescriptionElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
-
-/**
- * Unit tests for the BindingFault class.
- * 
- * @author Graham Turrell (gturrell@apache.org)
- */
-public class BindingFaultTest extends TestCase {
-
-	private BindingFaultElement fFaultElement = null;
-	private BindingFault fFault = null;	
-
-	public static Test suite()
-	{
-	   return new TestSuite(BindingFaultTest.class);
-	   
-	}
-	   /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception 
-    {
-    	super.setUp();
-    	fFaultElement = new BindingFaultImpl();
-    	fFault = (BindingFault) fFaultElement;
-    }
-    
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception 
-    {
-        super.tearDown();
-    }
-
-	/* 
-	 * Test that the (Mandatory) InterfaceFault can be successfully retrieved.
-	 */
-	public void testGetInterfaceFault()
-	{
-        WSDLFactory factory = null;
-        try {
-            factory = WSDLFactory.newInstance();
-        } catch (WSDLException e) {
-            fail("Can't instantiate the WSDLFactory object.");
-        }
-        
-		DescriptionElement descriptionElement = factory.newDescription();
-
-		// Create the BindingElement<->InterfaceElement->InterfaceFaultElement hierarchy
-		BindingElement bindingElement = descriptionElement.addBindingElement();
-		bindingElement.setInterfaceName(new QName("interface1"));
-		bindingElement.setName(new NCName("binding1"));
-		
-		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
-		interfaceElement.setName(new NCName("interface1"));
-		
-		InterfaceFaultElement iffElement = interfaceElement.addInterfaceFaultElement();
-		iffElement.setName(new NCName("fault1"));
-
-		// Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
-		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
-		bopElement.setRef(new QName("operation1"));
-		fFaultElement = bindingElement.addBindingFaultElement();
-		fFaultElement.setRef(new QName("fault1"));
-		
-		Description descComp = descriptionElement.toComponent();
-		descComp.getBindings(); // this triggers setting the link to description in the binding
-
-		BindingFault bf = (BindingFault)fFaultElement;
-	
-		InterfaceFault retrievedFault = bf.getInterfaceFault();
-		assertEquals("The retrieved InterfaceFaultElement is not that which was set", 
-				iffElement, retrievedFault);
-	}
-	
-	/*
-     * toElement()
-     */
-	public void testToElement() 
-	{	
-		assertEquals(fFaultElement, fFault.toElement());
-	}
-
-}
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20;
+
+import javax.xml.namespace.QName;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.internal.wsdl20.BindingFaultImpl;
+import org.apache.woden.internal.wsdl20.DescriptionImpl;
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingFaultElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.InterfaceFaultElement;
+
+/**
+ * Unit tests for the BindingFault class.
+ * 
+ * @author Graham Turrell (gturrell@apache.org)
+ */
+public class BindingFaultTest extends TestCase {
+
+	private BindingFaultElement fFaultElement = null;
+	private BindingFault fFault = null;	
+
+	public static Test suite()
+	{
+	   return new TestSuite(BindingFaultTest.class);
+	   
+	}
+	   /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception 
+    {
+    	super.setUp();
+    	fFaultElement = new BindingFaultImpl();
+    	fFault = (BindingFault) fFaultElement;
+    }
+    
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception 
+    {
+        super.tearDown();
+    }
+
+	/* 
+	 * Test that the (Mandatory) InterfaceFault can be successfully retrieved.
+	 */
+	public void testGetInterfaceFault()
+	{
+        WSDLFactory factory = null;
+        try {
+            factory = WSDLFactory.newInstance();
+        } catch (WSDLException e) {
+            fail("Can't instantiate the WSDLFactory object.");
+        }
+        
+		DescriptionElement descriptionElement = factory.newDescription();
+
+		// Create the BindingElement<->InterfaceElement->InterfaceFaultElement hierarchy
+		BindingElement bindingElement = descriptionElement.addBindingElement();
+		bindingElement.setInterfaceName(new QName("interface1"));
+		bindingElement.setName(new NCName("binding1"));
+		
+		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
+		interfaceElement.setName(new NCName("interface1"));
+		
+		InterfaceFaultElement iffElement = interfaceElement.addInterfaceFaultElement();
+		iffElement.setName(new NCName("fault1"));
+
+		// Create the BindingOperationElement->BindingFaultReferenceElement hierarchy
+		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
+		bopElement.setRef(new QName("operation1"));
+		fFaultElement = bindingElement.addBindingFaultElement();
+		fFaultElement.setRef(new QName("fault1"));
+		
+		Description descComp = descriptionElement.toComponent();
+		descComp.getBindings(); // this triggers setting the link to description in the binding
+
+		BindingFault bf = (BindingFault)fFaultElement;
+	
+		InterfaceFault retrievedFault = bf.getInterfaceFault();
+		assertEquals("The retrieved InterfaceFaultElement is not that which was set", 
+				iffElement, retrievedFault);
+	}
+	
+	/*
+     * toElement()
+     */
+	public void testToElement() 
+	{	
+		assertEquals(fFaultElement, fFault.toElement());
+	}
+
+}

Propchange: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingFaultTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingMessageReferenceTest.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingMessageReferenceTest.java?rev=568937&r1=568936&r2=568937&view=diff
==============================================================================
--- incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingMessageReferenceTest.java (original)
+++ incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingMessageReferenceTest.java Thu Aug 23 04:24:51 2007
@@ -1,122 +1,122 @@
-/**
+/**
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
- *     http://www.apache.org/licenses/LICENSE-2.0 
- * 
- * Unless required by applicable law or agreed to in writing, software 
- * distributed under the License is distributed on an "AS IS" BASIS, 
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
- * See the License for the specific language governing permissions and 
- * limitations under the License.
- */
-package org.apache.woden.wsdl20;
-
-import javax.xml.namespace.QName;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-import org.apache.woden.WSDLException;
-import org.apache.woden.WSDLFactory;
-import org.apache.woden.internal.wsdl20.BindingMessageReferenceImpl;
-import org.apache.woden.internal.wsdl20.DescriptionImpl;
-import org.apache.woden.types.NCName;
-import org.apache.woden.wsdl20.xml.BindingElement;
-import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
-import org.apache.woden.wsdl20.xml.BindingOperationElement;
-import org.apache.woden.wsdl20.xml.DescriptionElement;
-import org.apache.woden.wsdl20.xml.InterfaceElement;
-import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
-import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
-
-/**
- * Unit tests for the BindingMessageReference class.
- * 
- * @author Graham Turrell (gturrell@apache.org)
- */
-public class BindingMessageReferenceTest extends TestCase {
-
-	private BindingMessageReferenceElement fBindingMessageRefElement = null;
-	private BindingMessageReference fBindingMessageRef = null;	
-
-	public static Test suite()
-	{
-	   return new TestSuite(BindingMessageReferenceTest.class);
-	   
-	}
-	   /*
-     * @see TestCase#setUp()
-     */
-    protected void setUp() throws Exception 
-    {
-    	super.setUp();
-    	fBindingMessageRefElement = new BindingMessageReferenceImpl();
-		fBindingMessageRef = (BindingMessageReference) fBindingMessageRefElement;
-    }
-    
-    /*
-     * @see TestCase#tearDown()
-     */
-    protected void tearDown() throws Exception 
-    {
-        super.tearDown();
-    }
-
-	/* 
-	 * Test that the (Mandatory) InterfaceMessageReference can be successfully retrieved.
-	 * - getInterfaceMessageReference()
-	 * 
-	 */
-	public void testGetInterfaceMessageReference()
-	{
-        WSDLFactory factory = null;
-        try {
-            factory = WSDLFactory.newInstance();
-        } catch (WSDLException e) {
-            fail("Can't instantiate the WSDLFactory object.");
-        }
-
-        DescriptionElement descriptionElement = factory.newDescription();
-
-		// Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceMessageReferenceElement hierarchy
-		BindingElement bindingElement = descriptionElement.addBindingElement();
-		bindingElement.setInterfaceName(new QName("interface1"));
-		
-		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
-		interfaceElement.setName(new NCName("interface1"));
-
-		InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
-		ifopElement.setName(new NCName("operation1"));
-		InterfaceMessageReferenceElement ifmrElement = ifopElement.addInterfaceMessageReferenceElement();
-		ifmrElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));
-				
-		// Create the BindingOperationElement->BindingMessageReferenceElement hierarchy
-		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
-		bopElement.setRef(new QName("operation1"));
-		fBindingMessageRefElement = bopElement.addBindingMessageReferenceElement();
-		fBindingMessageRefElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));
-
-		Description descComp = descriptionElement.toComponent();
-		descComp.getBindings(); // this triggers setting the link to description in the binding
-		
-		fBindingMessageRef = (BindingMessageReference) fBindingMessageRefElement;
-		InterfaceMessageReference retrievedMessage = fBindingMessageRef.getInterfaceMessageReference();
-		assertEquals("The retrieved InterfaceMessageReference is not that which was set", 
-				ifmrElement, retrievedMessage);
-	}
-	
-	/*
-     * toElement()
-     */
-	public void testToElement() 
-	{	
-		assertEquals(fBindingMessageRefElement, fBindingMessageRef.toElement());
-	}
-
-}
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0 
+ * 
+ * Unless required by applicable law or agreed to in writing, software 
+ * distributed under the License is distributed on an "AS IS" BASIS, 
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ * See the License for the specific language governing permissions and 
+ * limitations under the License.
+ */
+package org.apache.woden.wsdl20;
+
+import javax.xml.namespace.QName;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.internal.wsdl20.BindingMessageReferenceImpl;
+import org.apache.woden.internal.wsdl20.DescriptionImpl;
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.xml.BindingElement;
+import org.apache.woden.wsdl20.xml.BindingMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.BindingOperationElement;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+import org.apache.woden.wsdl20.xml.InterfaceMessageReferenceElement;
+import org.apache.woden.wsdl20.xml.InterfaceOperationElement;
+
+/**
+ * Unit tests for the BindingMessageReference class.
+ * 
+ * @author Graham Turrell (gturrell@apache.org)
+ */
+public class BindingMessageReferenceTest extends TestCase {
+
+	private BindingMessageReferenceElement fBindingMessageRefElement = null;
+	private BindingMessageReference fBindingMessageRef = null;	
+
+	public static Test suite()
+	{
+	   return new TestSuite(BindingMessageReferenceTest.class);
+	   
+	}
+	   /*
+     * @see TestCase#setUp()
+     */
+    protected void setUp() throws Exception 
+    {
+    	super.setUp();
+    	fBindingMessageRefElement = new BindingMessageReferenceImpl();
+		fBindingMessageRef = (BindingMessageReference) fBindingMessageRefElement;
+    }
+    
+    /*
+     * @see TestCase#tearDown()
+     */
+    protected void tearDown() throws Exception 
+    {
+        super.tearDown();
+    }
+
+	/* 
+	 * Test that the (Mandatory) InterfaceMessageReference can be successfully retrieved.
+	 * - getInterfaceMessageReference()
+	 * 
+	 */
+	public void testGetInterfaceMessageReference()
+	{
+        WSDLFactory factory = null;
+        try {
+            factory = WSDLFactory.newInstance();
+        } catch (WSDLException e) {
+            fail("Can't instantiate the WSDLFactory object.");
+        }
+
+        DescriptionElement descriptionElement = factory.newDescription();
+
+		// Create the BindingElement<->InterfaceElement->InterfaceOperationElement->InterfaceMessageReferenceElement hierarchy
+		BindingElement bindingElement = descriptionElement.addBindingElement();
+		bindingElement.setInterfaceName(new QName("interface1"));
+		
+		InterfaceElement interfaceElement = descriptionElement.addInterfaceElement();
+		interfaceElement.setName(new NCName("interface1"));
+
+		InterfaceOperationElement ifopElement = interfaceElement.addInterfaceOperationElement();
+		ifopElement.setName(new NCName("operation1"));
+		InterfaceMessageReferenceElement ifmrElement = ifopElement.addInterfaceMessageReferenceElement();
+		ifmrElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));
+				
+		// Create the BindingOperationElement->BindingMessageReferenceElement hierarchy
+		BindingOperationElement bopElement = bindingElement.addBindingOperationElement();
+		bopElement.setRef(new QName("operation1"));
+		fBindingMessageRefElement = bopElement.addBindingMessageReferenceElement();
+		fBindingMessageRefElement.setMessageLabel(new NCName("MessageRef1MessageLabel"));
+
+		Description descComp = descriptionElement.toComponent();
+		descComp.getBindings(); // this triggers setting the link to description in the binding
+		
+		fBindingMessageRef = (BindingMessageReference) fBindingMessageRefElement;
+		InterfaceMessageReference retrievedMessage = fBindingMessageRef.getInterfaceMessageReference();
+		assertEquals("The retrieved InterfaceMessageReference is not that which was set", 
+				ifmrElement, retrievedMessage);
+	}
+	
+	/*
+     * toElement()
+     */
+	public void testToElement() 
+	{	
+		assertEquals(fBindingMessageRefElement, fBindingMessageRef.toElement());
+	}
+
+}

Propchange: incubator/woden/trunk/java/test/org/apache/woden/wsdl20/BindingMessageReferenceTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



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