You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wink.apache.org by bl...@apache.org on 2009/07/19 04:46:13 UTC

svn commit: r795464 [1/2] - in /incubator/wink/trunk/wink-integration-test/wink-server-integration-test: ./ wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ wink-jaxrs-test-validation/ wink-jaxrs-test-validation/src/...

Author: bluk
Date: Sun Jul 19 02:46:11 2009
New Revision: 795464

URL: http://svn.apache.org/viewvc?rev=795464&view=rev
Log:
Wink Validation Integration Tests

See [WINK-91]

Added:
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/pom.xml
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource2.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource2.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePackageConstructor.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePrivateConstructor.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePublicConstructor.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcesConstructorResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/MultipleEntityParamsResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/FormParameterValidationResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/Application.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathWarningResource.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/geronimo-web.xml
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/web.xml
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/index.jsp
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/ConstructorTest.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/entity/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/entity/EntityValidationTest.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formfield/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationTest.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formparam/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formparam/FormParamValidationTest.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formproperty/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationTest.java
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/pathmethods/
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/pathmethods/PathMethodTest.java
Modified:
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/pom.xml
    incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ContentEncodingTest.java

Modified: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/pom.xml
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/pom.xml?rev=795464&r1=795463&r2=795464&view=diff
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/pom.xml (original)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/pom.xml Sun Jul 19 02:46:11 2009
@@ -37,7 +37,8 @@
         <module>wink-jaxrs-test-params</module>
         <module>wink-jaxrs-test-inheritance</module>
         <module>wink-jaxrs-test-targetting</module>
-  </modules>
+        <module>wink-jaxrs-test-validation</module>
+    </modules>
 
     <properties>
         <wink.server.hostname>localhost</wink.server.hostname>

Modified: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ContentEncodingTest.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ContentEncodingTest.java?rev=795464&r1=795463&r2=795464&view=diff
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ContentEncodingTest.java (original)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-targetting/src/test/java/org/apache/wink/jaxrs/test/contentencoding/ContentEncodingTest.java Sun Jul 19 02:46:11 2009
@@ -137,7 +137,7 @@
         postMethod.setRequestHeader("Accept-Encoding", "gzip");
         postMethod.setRequestHeader("Content-Encoding", "gzip");
         ByteArrayOutputStream originalContent = new ByteArrayOutputStream();
-        for (int c = 0; c < 50000000; ++c) {
+        for (int c = 0; c < 5000000; ++c) {
             originalContent.write(c);
         }
 

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/pom.xml
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/pom.xml?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/pom.xml (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/pom.xml Sun Jul 19 02:46:11 2009
@@ -0,0 +1,32 @@
+<?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>
+    <parent>
+        <artifactId>wink-server-integration-test</artifactId>
+        <groupId>org.apache.wink</groupId>
+        <version>0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.wink</groupId>
+    <artifactId>wink-jaxrs-test-validation</artifactId>
+    <packaging>war</packaging>
+    <name>wink-jaxrs-test-validation Maven Webapp</name>
+    <version>0.1-SNAPSHOT</version>
+</project>
\ No newline at end of file

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,38 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Application extends javax.ws.rs.core.Application {
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> clazzes = new HashSet<Class<?>>();
+        clazzes.add(MultiConstructorResource.class);
+        clazzes.add(MultiConstructorResource2.class);
+        clazzes.add(SameNumParamConstructorResource.class);
+        clazzes.add(SameNumParamConstructorResource2.class);
+        clazzes.add(SubResourcesConstructorResource.class);
+        return clazzes;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,67 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.MatrixParam;
+import javax.ws.rs.Path;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.UriInfo;
+
+@Path("/constructors/multi")
+public class MultiConstructorResource {
+
+    /*
+     * determines the number of times the constructors have been called in total
+     */
+    private static int constructorCallCount = 0;
+
+    final private String whichConstructor;
+
+    public MultiConstructorResource() {
+        ++constructorCallCount;
+        whichConstructor = "Default" + constructorCallCount;
+    }
+
+    public MultiConstructorResource(@QueryParam("q") String query) {
+        ++constructorCallCount;
+        whichConstructor = "query" + constructorCallCount;
+    }
+
+    public MultiConstructorResource(@MatrixParam("m") String matrix, @QueryParam("q") String query) {
+        ++constructorCallCount;
+        whichConstructor = "matrixAndQuery" + constructorCallCount;
+    }
+
+    public MultiConstructorResource(@MatrixParam("m") String matrix, @QueryParam("q") String query, @Context UriInfo uriinfo) {
+        ++constructorCallCount;
+        /*
+         * this should be the called constructor
+         */
+        whichConstructor = "matrixAndQueryAndContext" + constructorCallCount;
+    }
+
+    @GET
+    public String getInfo() {
+        return whichConstructor;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource2.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource2.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource2.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/MultiConstructorResource2.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,64 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.CookieParam;
+import javax.ws.rs.GET;
+import javax.ws.rs.HeaderParam;
+import javax.ws.rs.Path;
+import javax.ws.rs.PathParam;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.UriInfo;
+
+@Path("/constructors/multi2/{path}")
+public class MultiConstructorResource2 {
+
+    /**
+     * counts the number of times the constructor has been called
+     */
+    private static int constructorCallCount = 0;
+
+    final private String whichConstructor;
+
+    public MultiConstructorResource2(@HeaderParam("header1") String header1, @CookieParam("cookie1") String cookie1) {
+        ++constructorCallCount;
+        whichConstructor = "headerAndCookieAndPath" + constructorCallCount;
+    }
+
+    public MultiConstructorResource2(@HeaderParam("header1") int header1, @PathParam("cookie1") String cookie1) {
+        ++constructorCallCount;
+        whichConstructor = "headerAndCookieAndPath" + constructorCallCount;
+    }
+
+    public MultiConstructorResource2(@Context UriInfo uriInfo, @HeaderParam("header1") String header1, @CookieParam("cookie1") String cookie1, @PathParam("path") String path1) {
+        /*
+         * this should be the called constructor
+         */
+        ++constructorCallCount;
+        whichConstructor = "contextAndHeaderAndCookieAndPath"
+                + constructorCallCount;
+    }
+
+    @GET
+    public String getInfo() {
+        return whichConstructor;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,63 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.Context;
+import javax.ws.rs.core.UriInfo;
+
+@Path("constructors/samenumparam")
+public class SameNumParamConstructorResource {
+
+    /*
+     * determines the number of times the constructors have been called in total
+     */
+    private static int constructorCallCount = 0;
+
+    final private String whichConstructor;
+
+    public SameNumParamConstructorResource() {
+        ++constructorCallCount;
+        whichConstructor = "default" + constructorCallCount;
+    }
+
+    public SameNumParamConstructorResource(@Context UriInfo uriInfo) {
+        /*
+         * this constructor may be called
+         */
+        ++constructorCallCount;
+        whichConstructor = "context" + constructorCallCount;
+    }
+
+    public SameNumParamConstructorResource(@QueryParam("q") String q) {
+        /*
+         * this constructor may be called
+         */
+        ++constructorCallCount;
+        whichConstructor = "query" + constructorCallCount;
+    }
+
+    @GET
+    public String getInfo() {
+        return whichConstructor;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource2.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource2.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource2.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SameNumParamConstructorResource2.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,61 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.QueryParam;
+
+@Path("constructors/samenumparam2")
+public class SameNumParamConstructorResource2 {
+
+    /*
+     * determines the number of times the constructors have been called in total
+     */
+    private static int constructorCallCount = 0;
+
+    final private String whichConstructor;
+
+    public SameNumParamConstructorResource2() {
+        ++constructorCallCount;
+        whichConstructor = "default" + constructorCallCount;
+    }
+
+    public SameNumParamConstructorResource2(@QueryParam("q") int q) {
+        /*
+         * this constructor may be called
+         */
+        ++constructorCallCount;
+        whichConstructor = "queryInt" + constructorCallCount;
+    }
+
+    public SameNumParamConstructorResource2(@QueryParam("q") String q) {
+        /*
+         * this constructor may be called
+         */
+        ++constructorCallCount;
+        whichConstructor = "queryString" + constructorCallCount;
+    }
+
+    @GET
+    public String getInfo() {
+        return whichConstructor;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePackageConstructor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePackageConstructor.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePackageConstructor.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePackageConstructor.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,46 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+public class SubResourcePackageConstructor {
+
+    final private String whichConstructor;
+
+    SubResourcePackageConstructor() {
+        whichConstructor = "package";
+    }
+
+    SubResourcePackageConstructor(String s) {
+        whichConstructor = s;
+    }
+
+    @GET
+    public String getInfo() {
+        return whichConstructor;
+    }
+
+    @Path("/other")
+    public SubResourcePublicConstructor other() {
+        return new SubResourcePublicConstructor();
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePrivateConstructor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePrivateConstructor.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePrivateConstructor.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePrivateConstructor.java Sun Jul 19 02:46:11 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+public class SubResourcePrivateConstructor {
+
+    final private String whichConstructor;
+
+    private SubResourcePrivateConstructor() {
+        whichConstructor = "private";
+    }
+
+    private SubResourcePrivateConstructor(String s) {
+        whichConstructor = s;
+    }
+
+    public static Object getPrivateInstance(String query) {
+        if (query == null) {
+            return new SubResourcePrivateConstructor();
+        }
+        return new SubResourcePrivateConstructor(query);
+    }
+
+    @GET
+    public String info() {
+        return whichConstructor;
+    }
+
+    @Path("other")
+    public SubResourcePackageConstructor other() {
+        return new SubResourcePackageConstructor("subpackage");
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePublicConstructor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePublicConstructor.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePublicConstructor.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcePublicConstructor.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,47 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+public class SubResourcePublicConstructor {
+
+    final private String whichConstructor;
+
+    public SubResourcePublicConstructor() {
+        whichConstructor = "public";
+    }
+
+    public SubResourcePublicConstructor(String s) {
+        whichConstructor = s;
+    }
+
+    @GET
+    public String info() {
+        return whichConstructor;
+    }
+
+    @Path("other")
+    public SubResourcePackageConstructor other() {
+        return new SubResourcePackageConstructor("subpackage");
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcesConstructorResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcesConstructorResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcesConstructorResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/constructors/SubResourcesConstructorResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,68 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import javax.ws.rs.Path;
+import javax.ws.rs.QueryParam;
+
+@Path("constructors/subresource")
+public class SubResourcesConstructorResource {
+
+    @Path("emptypackage")
+    public SubResourcePackageConstructor packageEmptyConstructor() {
+        return new SubResourcePackageConstructor();
+    }
+
+    @Path("stringpackage")
+    public SubResourcePackageConstructor packageStringConstructor() {
+        return new SubResourcePackageConstructor("packageString");
+    }
+
+    @Path("emptypublic")
+    public SubResourcePublicConstructor publicEmptyConstructor() {
+        return new SubResourcePublicConstructor();
+    }
+
+    @Path("stringpublic")
+    public SubResourcePublicConstructor publicStringConstructor(@QueryParam("q") String s) {
+        return new SubResourcePublicConstructor(s);
+    }
+
+    @Path("emptyprivate")
+    public Object privateEmptyConstructor() {
+        return SubResourcePrivateConstructor.getPrivateInstance(null);
+    }
+
+    @Path("stringprivate")
+    public Object privateStringConstructor(@QueryParam("q") String s) {
+        return SubResourcePrivateConstructor.getPrivateInstance(s);
+    }
+
+    @Path("sub")
+    public Object subconstructor(@QueryParam("which") String which) {
+        if ("package".equals(which)) {
+            return new SubResourcePackageConstructor();
+        } else if ("public".equals(which)) {
+            return new SubResourcePublicConstructor();
+        }
+        return null;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,41 @@
+/*
+ * 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.wink.jaxrs.test.param.entity;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
+public class Application extends javax.ws.rs.core.Application {
+
+    Set<Class<?>> classes = new HashSet<Class<?>>();
+
+    public Application() {
+        classes = new HashSet<Class<?>>();
+        classes.add(MultipleEntityParamsResource.class);
+        classes = Collections.unmodifiableSet(classes);
+    }
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        return classes;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/MultipleEntityParamsResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/MultipleEntityParamsResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/MultipleEntityParamsResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/entity/MultipleEntityParamsResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,32 @@
+/*
+ * 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.wink.jaxrs.test.param.entity;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+@Path("/params/multientity")
+public class MultipleEntityParamsResource {
+
+    @GET
+    public void getMultipleEntity(String s1, String s2) {
+        return;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,34 @@
+/*
+ * 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.wink.jaxrs.test.param.formfield;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Application extends javax.ws.rs.core.Application {
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> clazzes = new HashSet<Class<?>>();
+        clazzes.add(FormFieldValidationResource.class);
+        return clazzes;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formfield/FormFieldValidationResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,36 @@
+/*
+ * 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.wink.jaxrs.test.param.formfield;
+
+import javax.ws.rs.FormParam;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+
+@Path("params/form/validate/fieldnotmultivaluedmapparam")
+public class FormFieldValidationResource {
+
+    @FormParam("p1")
+    private String p1 = null;
+
+    @POST
+    public String getSomething(String something) {
+        return p1 + ":" + something;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,34 @@
+/*
+ * 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.wink.jaxrs.test.param.formparam;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Application extends javax.ws.rs.core.Application {
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> clazzes = new HashSet<Class<?>>();
+        clazzes.add(FormParameterValidationResource.class);
+        return clazzes;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/FormParameterValidationResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/FormParameterValidationResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/FormParameterValidationResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formparam/FormParameterValidationResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,33 @@
+/*
+ * 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.wink.jaxrs.test.param.formparam;
+
+import javax.ws.rs.FormParam;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+
+@Path("params/form/validate/paramnotmultivaluedmaparam")
+public class FormParameterValidationResource {
+
+    @POST
+    public String getSomething(@FormParam("firstkey") String p1, String p2) {
+        return p1 + ":" + p2;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,34 @@
+/*
+ * 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.wink.jaxrs.test.param.formproperty;
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class Application extends javax.ws.rs.core.Application {
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        Set<Class<?>> clazzes = new HashSet<Class<?>>();
+        clazzes.add(FormPropertyValidationResource.class);
+        return clazzes;
+    }
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/param/formproperty/FormPropertyValidationResource.java Sun Jul 19 02:46:11 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.wink.jaxrs.test.param.formproperty;
+
+import javax.ws.rs.FormParam;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+
+@Path("params/form/validate/propertynotmultivaluedmaparam")
+public class FormPropertyValidationResource {
+
+    private String p1;
+
+    @POST
+    public String doSomething(String something) {
+        return p1 + ":" + something;
+    }
+
+    @FormParam(value = "P1")
+    public void setP1(String p1) {
+        this.p1 = p1;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/Application.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/Application.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/Application.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/Application.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,44 @@
+/*
+ * 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.wink.jaxrs.test.pathmethods;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Path annotation test application.
+ */
+public class Application extends javax.ws.rs.core.Application {
+
+    Set<Class<?>> classes = new HashSet<Class<?>>();
+
+    public Application() {
+        classes = new HashSet<Class<?>>();
+        classes.add(PathResource.class);
+        classes.add(PathWarningResource.class);
+        classes = Collections.unmodifiableSet(classes);
+    }
+
+    @Override
+    public Set<Class<?>> getClasses() {
+        return classes;
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,27 @@
+/*
+ * 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.wink.jaxrs.test.pathmethods;
+
+import javax.ws.rs.Path;
+
+@Path("/path")
+public class PathResource {
+
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathWarningResource.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathWarningResource.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathWarningResource.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/java/org/apache/wink/jaxrs/test/pathmethods/PathWarningResource.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,46 @@
+/*
+ * 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.wink.jaxrs.test.pathmethods;
+
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+
+@Path("/pathwarnings")
+public class PathWarningResource {
+
+    @SuppressWarnings("unused")
+    @GET
+    @Path("/private")
+    private String getPrivateMethod() {
+        return "You shouldn't find me.";
+    }
+
+    @GET
+    @Path("/protected")
+    protected String getProtectedMethod() {
+        return "You shouldn't find me.";
+    }
+
+    @GET
+    @Path("/package")
+    String getPackageMethod() {
+        return "You shouldn't find me.";
+    }
+}

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/geronimo-web.xml?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/geronimo-web.xml Sun Jul 19 02:46:11 2009
@@ -0,0 +1,35 @@
+<?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.
+-->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" 
+         xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2" 
+         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2"> 
+ 
+    <sys:environment> 
+        <sys:moduleId> 
+            <sys:groupId>${groupId}</sys:groupId> 
+            <sys:artifactId>${artifactId}</sys:artifactId> 
+            <sys:version>${version}</sys:version> 
+            <sys:type>war</sys:type> 
+        </sys:moduleId> 
+    </sys:environment>  
+ 
+    <context-root>${artifactId}</context-root> 
+</web-app> 

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/web.xml?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/WEB-INF/web.xml Sun Jul 19 02:46:11 2009
@@ -0,0 +1,128 @@
+<?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.
+-->
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+    <display-name>Archetype Created Web Application</display-name>
+    <servlet>
+        <servlet-name>ConstructorValidation</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.constructors.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_constructors</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet>
+        <servlet-name>ParamEntity</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.param.entity.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_paramentity</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet>
+        <servlet-name>FormFieldValidation</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.param.formfield.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_paramformfield</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet>
+        <servlet-name>FormParamValidation</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.param.formparam.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_paramformparam</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet>
+        <servlet-name>FormPropertyValidation</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.param.formproperty.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_paramformproperty</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet>
+        <servlet-name>PathMethodValidation</servlet-name>
+        <servlet-class>org.apache.wink.server.internal.servlet.RestServlet</servlet-class>
+        <init-param>
+            <param-name>javax.ws.rs.Application</param-name>
+            <param-value>org.apache.wink.jaxrs.test.pathmethods.Application</param-value>
+        </init-param>
+        <init-param>
+            <param-name>requestProcessorAttribute</param-name>
+            <param-value>requestProcessorAttribute_pathmethods</param-value>
+        </init-param>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+    <servlet-mapping>
+        <servlet-name>ConstructorValidation</servlet-name>
+        <url-pattern>/constructors/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>ParamEntity</servlet-name>
+        <url-pattern>/param/entity/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>FormFieldValidation</servlet-name>
+        <url-pattern>/param/formfield/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>FormParamValidation</servlet-name>
+        <url-pattern>/param/formparam/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>FormPropertyValidation</servlet-name>
+        <url-pattern>/param/formproperty/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>PathMethodValidation</servlet-name>
+        <url-pattern>/pathmethod/*</url-pattern>
+    </servlet-mapping>
+</web-app>

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/index.jsp?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/index.jsp (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/main/webapp/index.jsp Sun Jul 19 02:46:11 2009
@@ -0,0 +1,24 @@
+<%--
+    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.
+--%>
+
+<html>
+<body>
+<h2>Hello World!</h2>
+</body>
+</html>

Added: incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/ConstructorTest.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/ConstructorTest.java?rev=795464&view=auto
==============================================================================
--- incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/ConstructorTest.java (added)
+++ incubator/wink/trunk/wink-integration-test/wink-server-integration-test/wink-jaxrs-test-validation/src/test/java/org/apache/wink/jaxrs/test/constructors/ConstructorTest.java Sun Jul 19 02:46:11 2009
@@ -0,0 +1,328 @@
+/*
+ * 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.wink.jaxrs.test.constructors;
+
+import java.io.IOException;
+
+import javax.xml.ws.http.HTTPException;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.httpclient.HttpClient;
+import org.apache.commons.httpclient.methods.GetMethod;
+import org.apache.wink.test.integration.ServerEnvironmentInfo;
+
+/**
+ * Tests the runtime for the specification regarding Constructors.
+ */
+public class ConstructorTest extends TestCase {
+
+    private static String getBaseURI() {
+        return ServerEnvironmentInfo.getBaseURI() + "/constructors/";
+    }
+
+    /**
+     * Tests that the runtime will use the correct constructor with a resource
+     * that has multiple constructors. The resource has multiple constructors
+     * with different number of parameters in each constructor.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testConstructorWithMostParams() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/multi");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("matrixAndQueryAndContext1", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the runtime will use the correct constructor with a resource
+     * that has multiple constructors. The resource has multiple constructors
+     * with different number of parameters in each constructor.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testConstructorWithMostParams2() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/multi2/somepath");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("contextAndHeaderAndCookieAndPath1", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the runtime will randomly choose a constructor between two
+     * constructors with the same number of parameters. A warning should be
+     * issued.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testConstructorWithSameParamWarning() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/samenumparam");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            String c = getMethod.getResponseBodyAsString();
+            boolean foundConstructor = false;
+            if ("context1".equals(c)) {
+                foundConstructor = true;
+            } else if ("query1".equals(c)) {
+                foundConstructor = true;
+            }
+            assertTrue("Returned message body was: " + c, foundConstructor);
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the runtime will randomly choose a constructor between two
+     * constructors with the same parameters except different types. A warning
+     * should be issued.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testConstructorWithSameParamWarning2() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/samenumparam2?q=15");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            String c = getMethod.getResponseBodyAsString();
+            boolean foundConstructor = false;
+            if ("queryInt1".equals(c)) {
+                foundConstructor = true;
+            } else if ("queryString1".equals(c)) {
+                foundConstructor = true;
+            }
+            assertTrue("Returned message body was: " + c, foundConstructor);
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a package default constructor.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPackageEmptyConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/emptypackage");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("package", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a package constructor with a String
+     * parameter.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPackageStringConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/stringpackage");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("packageString", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a public constructor.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPublicDefaultConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/subresource/emptypublic");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("public", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a public constructor with a String
+     * parameter.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPublicStringConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/stringpublic?q=Hello");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("Hello", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a private constructor.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPrivateDefaultConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod = new GetMethod(getBaseURI() + "/constructors/subresource/emptyprivate");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("private", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources can use a private constructor with a String
+     * parameter.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceLocatorPrivateStringConstructor() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/stringprivate?q=Hello");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("Hello", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources will eventually find the right resource.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceOtherSubPublicToPackage() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/stringpublic/other");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("subpackage", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources will eventually find the right resource.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceOtherSubPackageToPublic() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/stringpackage/other");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("public", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+
+    /**
+     * Tests that the sub-resources will eventually return the right resource.
+     * 
+     * @throws IOException
+     * @throws HTTPException
+     */
+    public void testSubResourceDecideSubDynamic() throws IOException, HTTPException {
+        HttpClient client = new HttpClient();
+
+        GetMethod getMethod =
+            new GetMethod(getBaseURI() + "/constructors/subresource/sub?which=public");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("public", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+
+        getMethod = new GetMethod(getBaseURI() + "/constructors/subresource/sub?which=package");
+        try {
+            client.executeMethod(getMethod);
+            assertEquals(200, getMethod.getStatusCode());
+            assertEquals("package", getMethod.getResponseBodyAsString());
+        } finally {
+            getMethod.releaseConnection();
+        }
+    }
+}