ws-woden-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sag...@apache.org
Subject svn commit: r809833 [1/10] - in /webservices/woden/trunk/java/woden-tests: ./ src/ src/main/ src/main/resources/ src/main/resources/META-INF/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/woden/ src/test...
Date Tue, 01 Sep 2009 05:50:51 GMT
Author: sagara
Date: Tue Sep  1 05:50:45 2009
New Revision: 809833

URL: http://svn.apache.org/viewvc?rev=809833&view=rev
Log:
Merging Woden-211 branch as the trunk.

Added:
    webservices/woden/trunk/java/woden-tests/
    webservices/woden/trunk/java/woden-tests/pom-impl-dom.xml
    webservices/woden/trunk/java/woden-tests/pom-impl-om.xml
    webservices/woden/trunk/java/woden-tests/pom.xml
    webservices/woden/trunk/java/woden-tests/src/
    webservices/woden/trunk/java/woden-tests/src/main/
    webservices/woden/trunk/java/woden-tests/src/main/resources/
    webservices/woden/trunk/java/woden-tests/src/main/resources/META-INF/
    webservices/woden/trunk/java/woden-tests/src/main/resources/META-INF/MANIFEST.MF
    webservices/woden/trunk/java/woden-tests/src/test/
    webservices/woden/trunk/java/woden-tests/src/test/java/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/WSDLFactoryTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/AssertionTestSuite.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestDescription1001.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1009.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1010.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/WodenContextImpl.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/validation/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/validation/WSDLComponentValidatorTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/validation/WSDLDocumentValidatorTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/resolver/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/resolver/SimpleURIResolverTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/tests/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/tests/W3CTestSuiteTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/BindingFaultReferenceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/BindingFaultTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/BindingMessageReferenceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/BindingOperationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/BindingTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/DescriptionTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/ElementDeclarationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/EndpointTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/InterfaceFaultReferenceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/InterfaceFaultTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/InterfaceMessageReferenceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/InterfaceOperationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/InterfaceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/ServiceTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/TypeDefinitionTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/ExtensionRegistryTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPBindingExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPBindingFaultExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPBindingMessageReferenceExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPBindingOperationExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPEndpointExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPLocationTemplateTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/http/HTTPLocationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/SOAPBindingExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/SOAPBindingFaultExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/SOAPBindingFaultReferenceExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/SOAPBindingMessageReferenceExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/extensions/soap/SOAPBindingOperationExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/fragids/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/fragids/FragmentIdentificationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/BindingElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/BindingFaultElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/BindingFaultReferenceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/BindingMessageReferenceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/BindingOperationElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/ChildElementCreationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/DescriptiontElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/DocumentationElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/EndpointElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/ImportElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/IncludeElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/InterfaceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/InterfaceFaultElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/InterfaceFaultReferenceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/InterfaceMessageReferenceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/InterfaceOperationElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/NameAttributeTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/ServiceElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/TypesElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/wsdl20/xml/WSDLElementTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/xml/
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/xml/IntOrTokenAttrTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/xml/TokenAttrTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/documentation/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/documentation/extension/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/documentation/extension/DocExtensionNoNSTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooBindingExtensions.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooBindingExtensionsImpl.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooBindingExtensionsTest.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooConstants.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooExtensionRegistrar.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooOddAttr.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/extensions/foo/FooOddAttrImpl.java
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/resolver/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/resolver/schemaloc/
    webservices/woden/trunk/java/woden-tests/src/test/java/testcase/resolver/schemaloc/SchemaLocationTest.java
    webservices/woden/trunk/java/woden-tests/src/test/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/W3Ctests.catalog
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/binding.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/interface.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/schemaImport.xsd
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/schemaInclude.xsd
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/simpleresolver.catalog
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/resolver/resources/woden14.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/HTTPBindingExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/HTTPBindingFaultExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/HTTPBindingMessageReferenceExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/HTTPBindingOperationExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/http/resources/HTTPEndpointExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/resources/ExtensionMessages.properties
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/SOAPBindingExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/SOAPBindingFaultExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/SOAPBindingFaultReferenceExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/SOAPBindingMessageReferenceExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/extensions/soap/resources/SOAPBindingOperationExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/fragids/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/fragids/greatH.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/xml/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/xml/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/xml/resources/EndpointElementTest.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/org/apache/woden/wsdl20/xml/resources/ServiceElementTest.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/documentation/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/documentation/extension/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/documentation/extension/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/documentation/extension/resources/nonamespace.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/extensions/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/extensions/foo/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/extensions/foo/Messages.properties
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/extensions/foo/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/extensions/foo/resources/FooBindingExtensions.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/schemaloc/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/schemaloc/resources/
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/schemaloc/resources/SchemaLocationTest.jar   (with props)
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/schemaloc/resources/SchemaLocationTest.wsdl
    webservices/woden/trunk/java/woden-tests/src/test/resources/testcase/resolver/schemaloc/resources/SchemaLocationTest.xsd

Added: webservices/woden/trunk/java/woden-tests/pom-impl-dom.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/pom-impl-dom.xml?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/pom-impl-dom.xml (added)
+++ webservices/woden/trunk/java/woden-tests/pom-impl-dom.xml Tue Sep  1 05:50:45 2009
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! 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.
+ !-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>woden-tests-impl-dom</artifactId>
+   <name>Woden - Tests DOM</name>
+   <packaging>jar</packaging>
+   <build>
+     <directory>target/dom</directory>
+     <plugins>
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-surefire-plugin</artifactId>
+         <configuration>
+         <!-- the DOM implementation does not support all tests. In order to be
+              more representative of the tests that fails, the failures will be
+              ignored and all tests will be run.
+              Note that this part is going to disappear as the OM implementation
+              will make progress
+          -->
+           <testFailureIgnore>false</testFailureIgnore>
+		   <excludes>
+			   <!-- W3C testsuite is run via /ant-test/build.xml and results
+				    are compared to W3C baseline -->
+			   <exclude>**/W3CTestSuiteTest.java</exclude>
+		   </excludes>		
+         </configuration>
+       </plugin>
+     </plugins>
+   </build>
+   <dependencies>
+     <dependency>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden-impl-dom</artifactId>
+       <version>1.0-SNAPSHOT</version>
+     </dependency>
+     <!-- This dependency is need for getting shared test resources.
+          See http://tildemh.com/2007/12/19/maven2-unit-test-dependencies
+      -->
+     <dependency>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden-impl-commons</artifactId>
+       <version>1.0-SNAPSHOT</version>
+       <scope>test</scope>
+       <classifier>tests</classifier>
+     </dependency>
+   </dependencies>
+</project>

Added: webservices/woden/trunk/java/woden-tests/pom-impl-om.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/pom-impl-om.xml?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/pom-impl-om.xml (added)
+++ webservices/woden/trunk/java/woden-tests/pom-impl-om.xml Tue Sep  1 05:50:45 2009
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! 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.
+ !-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>woden-tests-impl-om</artifactId>
+   <name>Woden - Tests OM</name>
+   <packaging>jar</packaging>
+   <build>
+     <directory>target/om</directory>
+     <plugins>
+       <plugin>
+         <groupId>org.apache.maven.plugins</groupId>
+         <artifactId>maven-surefire-plugin</artifactId>
+         <configuration>
+        <!-- the OM implementation does not support all tests. In order to be
+              more representative of the tests that fails, the failures will be
+              ignored and all tests will be run.
+              Note that this part is going to disappear as the OM implementation
+              will make progress
+          -->
+           <testFailureIgnore>false</testFailureIgnore>
+		   <excludes>
+			   <!-- W3C testsuite is run via /ant-test/build.xml and results
+				    are compared to W3C baseline -->
+			   <exclude>**/W3CTestSuiteTest.java</exclude>
+			   			   
+			   <!-- exclude tests that does not support for OM implementation -->
+			   <exclude>**/SimpleURIResolverTest</exclude>
+			    <exclude>**/HTTPBindingOperationExtensionsTest.java</exclude>
+			    <exclude>**/SOAPBindingFaultReferenceExtensionsTest.java</exclude>
+			    <exclude>**/SOAPBindingExtensionsTest.java</exclude>
+			    <exclude>**/SOAPBindingFaultExtensionsTest.java</exclude>
+			    <exclude>**/SOAPBindingMessageReferenceExtensionsTest.java</exclude>
+			    <exclude>**/SOAPBindingOperationExtensionsTest.java</exclude>
+			    <exclude>**/HTTPEndpointExtensionsTest.java</exclude>
+			    <exclude>**/HTTPBindingExtensionsTest.java</exclude>
+			    <exclude>**/HTTPBindingFaultExtensionsTest.java</exclude>
+			    <exclude>**/FooBindingExtensionsTest.java</exclude>
+			    <exclude>**/SimpleURIResolverTest.java</exclude>
+			    <exclude>**/HTTPBindingMessageReferenceExtensionsTest.java</exclude>
+			    <exclude>**/DocExtensionNoNSTest.java</exclude>
+			    
+			   
+		   </excludes>	
+         </configuration>
+       </plugin>
+     </plugins>
+   </build>
+   <dependencies>
+     <dependency>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden-impl-om</artifactId>
+       <version>1.0-SNAPSHOT</version>
+     </dependency>
+     <!-- This dependency is need for getting shared test resources.
+          See http://tildemh.com/2007/12/19/maven2-unit-test-dependencies
+      -->
+     <dependency>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden-impl-commons</artifactId>
+       <version>1.0-SNAPSHOT</version>
+       <scope>test</scope>
+       <classifier>tests</classifier>
+     </dependency>
+   </dependencies>
+</project>

Added: webservices/woden/trunk/java/woden-tests/pom.xml
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/pom.xml?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/pom.xml (added)
+++ webservices/woden/trunk/java/woden-tests/pom.xml Tue Sep  1 05:50:45 2009
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ !
+ ! 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.
+ !-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+   <parent>
+       <groupId>org.apache.woden</groupId>
+       <artifactId>woden</artifactId>
+       <version>1.0-SNAPSHOT</version>
+   </parent>
+
+   <artifactId>woden-tests</artifactId>
+   <name>Woden - Tests</name>
+   <packaging>pom</packaging>
+
+   <build>
+       <plugins>
+         <plugin>
+           <artifactId>maven-invoker-plugin</artifactId>
+           <!-- 1.2 is needed for mavenOpts -->
+           <version>1.2</version>
+           <executions>
+             <execution>
+               <id>test-dom</id>
+               <phase>test</phase>
+               <goals>
+                 <goal>run</goal>
+               </goals>
+               <configuration>
+                 <projectsDirectory>.</projectsDirectory>
+                 <pomIncludes>
+                   <pomInclude>pom-impl-dom.xml</pomInclude>
+                 </pomIncludes>
+                 <mavenOpts>-Dorg.apache.woden.WSDLFactory=org.apache.woden.internal.DOMWSDLFactory</mavenOpts>
+                 <streamLogs>true</streamLogs>
+                 <noLog>true</noLog>
+               </configuration>
+             </execution>
+             <execution>
+               <id>test-om</id>
+               <phase>test</phase>
+               <goals>
+                 <goal>run</goal>
+               </goals>
+               <configuration>
+                 <projectsDirectory>.</projectsDirectory>
+                 <pomIncludes>
+                   <pomInclude>pom-impl-om.xml</pomInclude>
+                 </pomIncludes>
+                 <mavenOpts>-Dorg.apache.woden.WSDLFactory=org.apache.woden.internal.OMWSDLFactory</mavenOpts>
+                 <streamLogs>true</streamLogs>
+                 <noLog>true</noLog>
+               </configuration>
+             </execution>
+           </executions>
+         </plugin>       
+       </plugins>
+   </build>
+
+</project>
\ No newline at end of file

Added: webservices/woden/trunk/java/woden-tests/src/main/resources/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/main/resources/META-INF/MANIFEST.MF?rev=809833&view=auto
==============================================================================
    (empty)

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/WSDLFactoryTest.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/WSDLFactoryTest.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/WSDLFactoryTest.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/WSDLFactoryTest.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,60 @@
+/**
+ * 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;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+
+public class WSDLFactoryTest extends TestCase 
+{
+
+  public static Test suite()
+  {
+	return new TestSuite(WSDLFactoryTest.class);
+  }
+  
+  public void testCreateFactory()
+  {
+	try
+	{
+      WSDLFactory factory = WSDLFactory.newInstance();
+	  assertNotNull("WSDL factory created is null.", factory);
+	}
+	catch(WSDLException e)
+	{
+	  fail("Unable to create WSDL factory." + e.getMessage());
+	}
+  }
+  
+  public void testCreateReader()
+  {  
+	WSDLFactory factory = null;
+    try 
+	{
+      factory = WSDLFactory.newInstance();
+	  WSDLReader reader = factory.newWSDLReader();
+	  assertNotNull("WSDL reader created is null.", reader);
+    } 
+	catch (WSDLException e) 
+	{
+	  fail("Unable to create WSDL reader. " + e.getMessage());
+    }
+  }
+  
+}

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/AssertionTestSuite.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/AssertionTestSuite.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/AssertionTestSuite.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/AssertionTestSuite.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,40 @@
+/**
+ * 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.internal.wsdl20.assertions;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * The assertion test suite contains all of the assertion tests.
+ * 
+ * @author Lawrence Mandel (lmandel@apache.org)
+ */
+public class AssertionTestSuite {
+
+	public static Test suite() {
+		TestSuite suite = new TestSuite(
+				"Test for org.apache.woden.internal.wsdl20.assertions");
+		//$JUnit-BEGIN$
+		suite.addTestSuite(TestDescription1001.class);
+		suite.addTestSuite(TestInterface1009.class);
+		suite.addTestSuite(TestInterface1010.class);
+		//$JUnit-END$
+		return suite;
+	}
+
+}

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestDescription1001.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestDescription1001.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestDescription1001.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestDescription1001.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,126 @@
+/**
+ * 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.internal.wsdl20.assertions;
+
+import java.net.URI;
+
+import junit.framework.TestCase;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.WSDLReader;
+import org.apache.woden.internal.resolver.SimpleURIResolver;
+import org.apache.woden.tests.TestErrorHandler;
+import org.apache.woden.wsdl20.validation.WodenContext;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+
+/**
+ * Test class for assertion class Description1001.
+ * 
+ * @author Lawrence Mandel (lmandel@apache.org)
+ */
+public class TestDescription1001 extends TestCase {
+
+	private WSDLFactory factory = null;
+	private Description1001 assertion = new Description1001();
+	private ErrorReporter reporter;
+	private TestErrorHandler handler;
+	private WodenContext wodenContext;
+	
+	protected void setUp() throws Exception {
+	    try {
+	        factory = WSDLFactory.newInstance();
+	    } catch (WSDLException e) {
+	        fail("Can't instantiate the WSDLFactory object.");
+	    }
+	    
+	    WSDLReader reader = factory.newWSDLReader();
+        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
+	    reporter = reader.getErrorReporter();
+        handler = new TestErrorHandler();
+	    reporter.setErrorHandler(handler);
+		wodenContext = new WodenContextImpl(reporter, new SimpleURIResolver());
+	}
+	
+	protected void tearDown() throws Exception {
+		factory = null;
+		reporter = null;
+		handler = null;
+		wodenContext = null;
+	}
+
+	/**
+	 * Test that the assertion reports a warning for a namespace
+	 * with the urn scheme.
+	 */
+	public void testTargetNamespaceSchemeurn() {
+		DescriptionElement descEl = factory.newDescription();
+		descEl.setTargetNamespace(URI.create("urn:sample"));
+
+		try {
+			assertion.validate(descEl, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Description1001 threw the following WSDLException for target namespace urn:sample: " + e.toString());
+		}
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Description1001 reports an error instead of a warning for an target namespace with the scheme urn.");
+		}
+		else if(!handler.messageHasBeenReported()) {
+			fail("Assertion Description1001 did not report a warning for a target namespace with the scheme urn.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion reports a warning for a namespace
+	 * with an unknown host http://example.sample. 
+	 */
+	public void testTargetNamespaceDoesNotResolveUnknownHost() {
+		DescriptionElement descEl = factory.newDescription();
+		descEl.setTargetNamespace(URI.create("http://example.sample"));
+
+		try {
+			assertion.validate(descEl, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Description1001 threw the following WSDLException for target namespace http://example.sample, which doesn't resolve: " + e.toString());
+		}
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Description1001 reports an error instead of a warning for an target namespace that doesn't resolve.");
+		}
+		else if(!handler.messageHasBeenReported()) {
+			fail("Assertion Description1001 did not report a warning for a target namespace that doesn't resolve.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion reports no warning for a namespace
+	 * that resolves such as http://apache.org.
+	 */
+	public void testTargetNamespaceResolves() {
+		DescriptionElement descEl = factory.newDescription();
+		descEl.setTargetNamespace(URI.create("http://ws.apache.org"));
+
+		try {
+			assertion.validate(descEl, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Description1001 threw the following WSDLException for target namespace http://apache.org, which should resolve: " + e.toString());
+		}
+		if(handler.messageHasBeenReported()) {
+			fail("Assertion Description1001 reports an error or warning for an target namespace that should resolve. Note that this test will fail without network connectivity.");
+		}
+	}
+}

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1009.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1009.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1009.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1009.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,191 @@
+/**
+ * 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.internal.wsdl20.assertions;
+
+import java.net.URI;
+
+import junit.framework.TestCase;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.WSDLReader;
+import org.apache.woden.internal.wsdl20.InterfaceImpl;
+import org.apache.woden.tests.TestErrorHandler;
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.Description;
+import org.apache.woden.wsdl20.validation.WodenContext;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+
+/**
+ * Test class for assertion class Interface1009.
+ * 
+ * @author Lawrence Mandel (lmandel@apache.org)
+ */
+public class TestInterface1009 extends TestCase {
+
+	private WSDLFactory factory = null;
+	private Interface1009 assertion = new Interface1009();
+	private ErrorReporter reporter;
+	private TestErrorHandler handler;
+	private WodenContext wodenContext;
+	
+	protected void setUp() throws Exception {
+	    try {
+	        factory = WSDLFactory.newInstance();
+	    } catch (WSDLException e) {
+	        fail("Can't instantiate the WSDLFactory object.");
+	    }
+	    
+	    WSDLReader reader = factory.newWSDLReader();
+        reader.setFeature(WSDLReader.FEATURE_VALIDATION, true);
+	    reporter = reader.getErrorReporter();
+        handler = new TestErrorHandler();
+	    reporter.setErrorHandler(handler);
+		wodenContext = new WodenContextImpl(reporter, null);
+	}
+	
+	protected void tearDown() throws Exception {
+		factory = null;
+		reporter = null;
+		handler = null;
+		wodenContext = null;
+	}
+
+	/**
+	 * Test that the assertion passes for an interface that 
+	 * extends no other interfaces.
+	 */
+	public void testNoInterfaceExtension() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+		descEl.setTargetNamespace(URI.create("http://testnamespace"));
+		
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name"));
+		
+		// init Interface's ref to its Description, needed for interface extension.
+		descComp.getInterfaces();
+		try {
+			assertion.validate(interfac, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Interface1009 threw a WSDLException.");
+		}
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1009 fails incorrectly for an interface that extends no other interfaces.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion fails if the interface is in the direct list.
+	 */
+	public void testInterfaceExtendsItselfDirectly() throws Exception {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+        descEl.setTargetNamespace(URI.create("http://testnamespace"));
+		  
+        InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name1"));
+		
+	    interfac.addExtendedInterfaceName(interfac.getName());
+	      
+	    // init Interface's ref to its Description, needed for interface extension.
+	    descComp.getInterfaces(); 
+		  
+	    try {
+	    	assertion.validate(interfac, wodenContext);
+	    } catch(WSDLException e) {
+	    	fail("Assertion Interface1009 threw a WSDLException.");
+	    }
+	    if(!handler.errorMessageHasBeenReported()) {
+	    	fail("Assertion Interface1009 passes incorrectly for an interface that directly extends itself.");
+	    }
+	}
+	
+	/**
+	 * Test that the assertion fails if the interface is in the indirect list.
+	 */
+	public void testInterfaceExtendsItselfIndirectly() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+        descEl.setTargetNamespace(URI.create("http://testnamespace"));
+        
+        InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name1"));
+		InterfaceImpl interfac2 = (InterfaceImpl)descEl.addInterfaceElement();
+		interfac2.setName(new NCName("name2"));
+	      
+		interfac.addExtendedInterfaceName(interfac2.getName());
+		interfac2.addExtendedInterfaceName(interfac.getName());
+	      
+		// init Interface's ref to its Description, needed for interface extension.
+		descComp.getInterfaces(); 
+		  
+		try {
+			assertion.validate(interfac, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Interface1009 threw a WSDLException.");
+		}
+		if(!handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1009 passes incorrectly for an interface that indirectly extends itself.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion passes if the interface is not 
+	 * in the direct or indirect list of extended interfaces.
+	 */
+	public void testInterfaceExtendsOtherInterfaces() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+        descEl.setTargetNamespace(URI.create("http://testnamespace"));
+	      
+		// Create an interface, set it to extend to other interfaces and have
+		// one of those interfaces extend a fourth interface.
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name1"));
+	      
+		InterfaceElement interfac2 = descEl.addInterfaceElement();
+		interfac2.setName(new NCName("name2"));
+
+		interfac.addExtendedInterfaceName(interfac2.getName());
+	      
+		InterfaceElement interfac3 = descEl.addInterfaceElement();
+		interfac3.setName(new NCName("name3"));
+	      
+		interfac.addExtendedInterfaceName(interfac3.getName());
+	      
+		InterfaceElement interfac4 = descEl.addInterfaceElement();
+		interfac4.setName(new NCName("name4"));
+	      
+		interfac2.addExtendedInterfaceName(interfac4.getName());
+	        
+		// init Interface's ref to its Description, needed for interface extension.
+		descComp.getInterfaces(); 
+		try {
+			assertion.validate(interfac, wodenContext);
+		} catch(WSDLException e){
+			fail("Assertion Interface1009 threw a WSDLException.");
+		}
+		
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1009 fails incorrectly for an interface that is not in the list of exteneded interfaces.");
+		}
+	}
+}

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1010.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1010.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1010.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/TestInterface1010.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,216 @@
+/**
+ * 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.internal.wsdl20.assertions;
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+import junit.framework.TestCase;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.WSDLException;
+import org.apache.woden.WSDLFactory;
+import org.apache.woden.internal.wsdl20.InterfaceImpl;
+import org.apache.woden.tests.TestErrorHandler;
+import org.apache.woden.types.NCName;
+import org.apache.woden.wsdl20.Description;
+import org.apache.woden.wsdl20.validation.WodenContext;
+import org.apache.woden.wsdl20.xml.DescriptionElement;
+import org.apache.woden.wsdl20.xml.InterfaceElement;
+
+/**
+ * Test class for assertion class Interface1009.
+ * 
+ * @author Lawrence Mandel (lmandel@apache.org)
+ */
+public class TestInterface1010 extends TestCase {
+
+	private WSDLFactory factory = null;
+	private Interface1010 assertion = new Interface1010();
+	private ErrorReporter reporter;
+	private TestErrorHandler handler;
+	private WodenContext wodenContext;
+	
+	protected void setUp() throws Exception {
+	    try {
+	        factory = WSDLFactory.newInstance();
+	    } catch (WSDLException e) {
+	        fail("Can't instantiate the WSDLFactory object.");
+	    }
+	    
+	    handler = new TestErrorHandler();
+	    reporter = factory.newWSDLReader().getErrorReporter();
+		reporter.setErrorHandler(handler);
+		wodenContext = new WodenContextImpl(reporter, null);
+	}
+	
+	protected void tearDown() throws Exception {
+		factory = null;
+		reporter = null;
+		handler = null;
+		wodenContext = null;
+	}
+
+	/**
+	 * Test that the assertion passes for an empty list of interfaces.
+	 */
+	public void testNoInterfaces() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+		try {
+			descEl.setTargetNamespace(new URI("http://testnamespace"));
+		} catch(URISyntaxException e) {
+			// Do nothing.
+		}
+	      
+		try {
+			assertion.validate(descComp, wodenContext);
+		} catch(WSDLException e) {
+			fail("Assertion Interface1010 threw WSDLException.");
+		}
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1010 failed incorrectly with no interfaces specified.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion passes when only one interface is defined.
+	 */
+	public void testOneInterface() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+		try {
+			descEl.setTargetNamespace(new URI("http://testnamespace"));
+		} catch(URISyntaxException e) {
+			// Do nothing.
+		}
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name1"));
+		
+		try {
+			assertion.validate(descComp, wodenContext);
+		} catch(WSDLException e) {
+			fail("Assertion Interface1010 threw WSDLException.");
+		}
+		
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1010 failed incorrectly with a single interface defined.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion passes for a list of interfaces that contains no duplicate names.
+	 */
+	public void testMultipleInterfaceNoDuplicateNames() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+		try {
+			descEl.setTargetNamespace(new URI("http://testnamespace"));
+		} catch(URISyntaxException e) {
+			// Do nothing.
+		}
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name1"));
+		InterfaceElement interfac2 = descEl.addInterfaceElement();
+		interfac2.setName(new NCName("name2"));
+		InterfaceElement interfac3 = descEl.addInterfaceElement();
+		interfac3.setName(new NCName("name3"));
+		  
+		try {
+			assertion.validate(descComp, wodenContext);
+		} catch(WSDLException e) {
+			fail("Assertion Interface1010 threw WSDLException.");
+		}
+		
+		if(handler.errorMessageHasBeenReported()) {
+			fail("Assertion Interface1010 failed incorrectly with multiple interfaces defined with no duplicate names.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion fails for two interfaces that are defined with the same NCName object.
+	 */
+	public void testDuplicateInterfaceNCNames() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+		try {
+			descEl.setTargetNamespace(new URI("http://testnamespace"));
+		} catch(URISyntaxException e) {
+			// Do nothing.
+		}
+		
+		NCName name = new NCName("name");
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(name);
+		InterfaceElement interfac2 = descEl.addInterfaceElement();
+		interfac2.setName(name);
+		// Need to create an extended interface otherwise the component model treats the
+		// two interfaces as equal and only adds one to the set.
+		InterfaceImpl interfac3 = (InterfaceImpl)descEl.addInterfaceElement();
+		interfac3.setName(new NCName("name3"));
+		interfac2.addExtendedInterfaceName(interfac3.getName());
+		  
+		try {
+			assertion.validate(descComp, wodenContext);
+		} catch(WSDLException e) {
+			fail("Assertion Interface1010 threw WSDLException.");
+		}
+		  
+		if(!handler.errorMessageHasBeenReported()) {
+		    fail("Assertion Interface1010 passed incorrectly for two interfaces defined with the same NCName.");
+		}
+	}
+	
+	/**
+	 * Test that the assertion fails for two interfaces that are defined with the same name.
+	 */
+	public void testDuplicateInterfaceNames() {
+		DescriptionElement descEl = factory.newDescription();
+		Description descComp = descEl.toComponent();
+	      
+		try {
+			descEl.setTargetNamespace(new URI("http://testnamespace"));
+		} catch(URISyntaxException e) {
+			// Do nothing.
+		}
+		
+		InterfaceElement interfac = descEl.addInterfaceElement();
+		interfac.setName(new NCName("name"));
+		InterfaceElement interfac2 = descEl.addInterfaceElement();
+		interfac2.setName(new NCName("name"));
+		// Need to create an extended interface otherwise the component model treats the
+		// two interfaces as equal and only adds one to the set.
+		InterfaceElement interfac3 = descEl.addInterfaceElement();
+		interfac3.setName(new NCName("name3"));
+		interfac2.addExtendedInterfaceName(interfac3.getName());
+		  
+		try {
+			assertion.validate(descComp, wodenContext);
+		} catch(WSDLException e) {
+			fail("Assertion Interface1010 threw WSDLException.");
+		}
+		  
+		if(!handler.errorMessageHasBeenReported()) {
+		    fail("Assertion Interface1010 passed incorrectly for two interfaces defined with the same name.");
+		}
+	}
+	
+}

Added: webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/WodenContextImpl.java
URL: http://svn.apache.org/viewvc/webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/WodenContextImpl.java?rev=809833&view=auto
==============================================================================
--- webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/WodenContextImpl.java (added)
+++ webservices/woden/trunk/java/woden-tests/src/test/java/org/apache/woden/internal/wsdl20/assertions/WodenContextImpl.java Tue Sep  1 05:50:45 2009
@@ -0,0 +1,53 @@
+/**
+ * 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.internal.wsdl20.assertions;
+
+import org.apache.woden.ErrorReporter;
+import org.apache.woden.resolver.URIResolver;
+import org.apache.woden.wsdl20.validation.WodenContext;
+
+/**
+ * Stub to allow for unit testing of assertions.
+ * 
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public class WodenContextImpl implements WodenContext {
+    
+    private ErrorReporter errReporter;
+    private URIResolver uriResolver;
+    
+    //package private ctor
+    public WodenContextImpl(ErrorReporter errReporter, URIResolver uriResolver) {
+        this.errReporter = errReporter;
+        this.uriResolver = uriResolver;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.woden.wsdl20.validation.WodenContext#getErrorReporter()
+     */
+    public ErrorReporter getErrorReporter() {
+        return this.errReporter;
+    }
+
+    /* (non-Javadoc)
+     * @see org.apache.woden.wsdl20.validation.WodenContext#getUriResolver()
+     */
+    public URIResolver getUriResolver() {
+        return this.uriResolver;
+    }
+
+}



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


Mime
View raw message